diff --git a/src/components/CaseCard.vue b/src/components/CaseCard.vue
index bff01f2..39740ae 100644
--- a/src/components/CaseCard.vue
+++ b/src/components/CaseCard.vue
@@ -40,7 +40,10 @@ const props = defineProps({
},
})
const toClassifyPage = id => {
- window.location.href = `/#/case-show?t=${id}`
+ console.log(window.location)
+ const origin = window.location.origin
+ const pathname = window.location.pathname
+ window.location.href = `${origin}${pathname}#/case-show?t=${id}`
window.location.reload()
}
const getImg = id => {
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 0a0058d..ef79e5f 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -11,7 +11,7 @@
-
+
diff --git a/vite.config.js b/vite.config.js
index 5f2c35d..5f9f07b 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -18,6 +18,7 @@ export default defineConfig({
host: '0.0.0.0',
},
plugins: [vue()],
+ base: '/mobile/',
//配置sass
css: {
preprocessorOptions: {