diff --git a/.env.production b/.env.production index 0d93262..c2fb44d 100644 --- a/.env.production +++ b/.env.production @@ -1 +1 @@ -VITE_BASE_URL = 'https://ceshi-suyuan-breed.lihaink.cn' \ No newline at end of file +VITE_BASE_URL = 'https://suyuan-breed.lihaink.cn' \ No newline at end of file diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..2171736 Binary files /dev/null and b/dist.zip differ diff --git a/src/App.vue b/src/App.vue index 7a291b5..bcc1ffc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -40,7 +40,8 @@ const back = ()=>{ } // 获取 URL 中的查询参数部分 -const queryString = window.location.search; +// const queryString = window.location.search; +const queryString = window.location.hash.split("?")[1]; // 解析查询参数字符串 const searchParams = new URLSearchParams(queryString); diff --git a/src/router/index.js b/src/router/index.js index 7923c06..7eb798d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,4 +1,4 @@ -import { createRouter, createWebHistory } from "vue-router" +import { createRouter, createWebHashHistory } from "vue-router" const routes = [ { @@ -31,7 +31,7 @@ const routes = [ ] const router = createRouter({ - history: createWebHistory('/'), + history: createWebHashHistory(), routes })