소스 검색

优化菜单路由

ming 2 년 전
부모
커밋
dc159e1ba3
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      package.json
  2. 2 2
      src/pages/index.vue

+ 1 - 0
package.json

@@ -69,6 +69,7 @@
         "@dcloudio/vite-plugin-uni": "3.0.0-alpha-3050320220729001",
         "@dcloudio/vite-plugin-uni": "3.0.0-alpha-3050320220729001",
         "@vitejs/plugin-vue": "^2.3.3",
         "@vitejs/plugin-vue": "^2.3.3",
         "cross-env": "^7.0.3",
         "cross-env": "^7.0.3",
+        "dayjs": "^1.11.7",
         "sass": "^1.54.3",
         "sass": "^1.54.3",
         "vite": "^2.9.14"
         "vite": "^2.9.14"
     }
     }

+ 2 - 2
src/pages/index.vue

@@ -364,8 +364,8 @@ function InputBlur(e) {
 
 
 function getAppRoutersData() {
 function getAppRoutersData() {
   getAppRouters({
   getAppRouters({
-    domain: window.location.host.indexOf("localhost") != -1 ? "localhost:81" : window.location.host,
-    platformType: "MOB",
+    // domain: window.location.host.indexOf("localhost") != -1 ? "localhost:81" : window.location.host,
+    // platformType: "MOB",
     // domain :'172.16.120.165:13201'
     // domain :'172.16.120.165:13201'
     // domain :'172.16.120.165:13203'
     // domain :'172.16.120.165:13203'
   }).then((res) => {
   }).then((res) => {