diff --git a/src/view/analyze.vue b/src/view/analyze.vue index d784f99..6369a43 100644 --- a/src/view/analyze.vue +++ b/src/view/analyze.vue @@ -1062,7 +1062,6 @@ const getData = async () => { }; onMounted(() => { - // tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); startAutoSwitching(); }); diff --git a/src/view/person/index.vue b/src/view/person/index.vue index a236af7..cddeea2 100644 --- a/src/view/person/index.vue +++ b/src/view/person/index.vue @@ -1041,7 +1041,6 @@ watch( } ); onMounted(() => { - // tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); if (routers.query.type) { errorMessage.value = ""; dataMyTag.identNo = routers.query.identNo; diff --git a/src/view/sy.vue b/src/view/sy.vue index 08f8e8e..4226016 100644 --- a/src/view/sy.vue +++ b/src/view/sy.vue @@ -1043,7 +1043,7 @@ const data = reactive({ ], whsyList: [ { - name: "公共图书馆(南孔书院)", + name: "公共图书馆(南孔书屋)", value: "198", dw: "家", }, @@ -1831,7 +1831,8 @@ const autoScroll = () => { } }; onBeforeMount(async () => { - // tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); + document.cookie='lytoken=6b0e380b4a8f46baae4923f83faf670d' + tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); getData(); getfw(); setTimeout(() => { diff --git a/src/view/sy_details.vue b/src/view/sy_details.vue index 95e5fb5..cf68abf 100644 --- a/src/view/sy_details.vue +++ b/src/view/sy_details.vue @@ -2733,7 +2733,6 @@ const rowState = (row) => { } }; onMounted(() => { - tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); if (routers.query.name) { data.name = routers.query.name; listAssignment(); diff --git a/src/view/sy_map.vue b/src/view/sy_map.vue index 9528ce4..0a173f2 100644 --- a/src/view/sy_map.vue +++ b/src/view/sy_map.vue @@ -4057,7 +4057,6 @@ const reset_font2 = () => { "scale(" + width / 1920 + "," + height / 1080 + ")"; }; onMounted(async () => { - tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); loadingss.value = true; reset_font(); await getXzsj(); diff --git a/src/view/sy_map_fb.vue b/src/view/sy_map_fb.vue index 5ca6458..95c07a8 100644 --- a/src/view/sy_map_fb.vue +++ b/src/view/sy_map_fb.vue @@ -1802,7 +1802,6 @@ const reset_font = () => { } }; onMounted(async () => { - // tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); loadingss.value = true; reset_font(); await getXzsj(); diff --git a/src/view/sy_table.vue b/src/view/sy_table.vue index 00de2d5..c309898 100644 --- a/src/view/sy_table.vue +++ b/src/view/sy_table.vue @@ -680,8 +680,6 @@ const sevenYX = (name) => { }; onMounted(() => { - tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); - if (localStorage.getItem("taps1")) { data.tapbody = JSON.parse(localStorage.getItem("taps1")); data.taps = localStorage.getItem("taps"); diff --git a/vite.config.js b/vite.config.js index 99753df..7708875 100644 --- a/vite.config.js +++ b/vite.config.js @@ -15,8 +15,8 @@ export default defineConfig({ // 第一个代理 "/api": { // 匹配到啥来进行方向代理 - // target: "http://10.0.0.65:8095/", //刘进 - target: "http://220.191.238.50:996/", //线上 + target: "http://10.0.0.65:8095/", //刘进 + // target: "http://220.191.238.50:996/", //线上 changeOrigin: true, //是否支持跨域 //rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个 },