From 80015ebcad880f126becc59e7800e95221656530 Mon Sep 17 00:00:00 2001
From: maochaoying <925670706@qq.com>
Date: Tue, 1 Aug 2023 15:45:38 +0800
Subject: [PATCH] case card
---
src/components/CaseCard.vue | 5 ++++-
src/pages/index.vue | 2 +-
vite.config.js | 1 +
3 files changed, 6 insertions(+), 2 deletions(-)
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: {