diff --git a/.env.development b/.env.development index 3e352dd..a8a9f1c 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,8 @@ NODE_ENV = 'development' # VITE_API_URL = 'http://183.63.230.59:6090' # VITE_API_URL = 'http://2xliv7gs.shenzhuo.vip:55296' VITE_WPAPI_URL = "http://jxjzw.zhgdyun.com:8081" -VITE_API_URL = "http://jxjzw.zhgdyun.com:9013" +# VITE_API_URL = "http://jxjzw.zhgdyun.com:9013" +VITE_API_URL = 'https://xmglcs.hyjgxt.cn:6090' # 上传 # VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url=' diff --git a/src/routers/modules/dynamicRouter.ts b/src/routers/modules/dynamicRouter.ts index 59a1484..4523828 100644 --- a/src/routers/modules/dynamicRouter.ts +++ b/src/routers/modules/dynamicRouter.ts @@ -65,9 +65,11 @@ export const initDynamicRouter = async (params?: any, defaultUrl?: any) => { router.push(item.path); ++toNum; } - if (item.path != "/" && toNum < 1 && defaultUrl && item.path == defaultUrl) { - router.push(defaultUrl); - ++toNum; + if (toNum < 1 && defaultUrl && defaultUrl.indexOf(item.path) != -1) { + setTimeout(function () { + router.push(defaultUrl); + ++toNum; + }, 500); } } // globalStore.setPath(null); diff --git a/src/views/goverment/huizhou/largeScreen/largeScreenOne/components/BDmaps.vue b/src/views/goverment/huizhou/largeScreen/largeScreenOne/components/BDmaps.vue index 65274c3..d86c0ab 100644 --- a/src/views/goverment/huizhou/largeScreen/largeScreenOne/components/BDmaps.vue +++ b/src/views/goverment/huizhou/largeScreen/largeScreenOne/components/BDmaps.vue @@ -1,5 +1,6 @@