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 => { 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() window.location.reload()
} }
const getImg = id => { const getImg = id => {

2
src/pages/index.vue

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

1
vite.config.js

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

Loading…
Cancel
Save