Browse Source

case card

master
maochaoying 2 years ago
parent
commit
80015ebcad
  1. 5
      src/components/CaseCard.vue
  2. 2
      src/pages/index.vue
  3. 1
      vite.config.js

5
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 => {

2
src/pages/index.vue

@ -11,7 +11,7 @@
<Track />
<OneStop />
<AboutUs />
<News />
<!-- <News /> -->
<Cooperation />
<Awards />
<Bottom :isDrag="isDrag" />

1
vite.config.js

@ -18,6 +18,7 @@ export default defineConfig({
host: '0.0.0.0',
},
plugins: [vue()],
base: '/mobile/',
//配置sass
css: {
preprocessorOptions: {

Loading…
Cancel
Save