vue打包和路由跳转
vue打包:(路径设置)图片引自网上(忘记哪里找的,多谢)路由跳转:1、<router-link to='aac'>aac</router-link>import aac from './aac'2、事件触发,然后 this.$router.push('/aac');在main.js中improt aac from './aac'const
·
vue打包:(路径设置)
图片引自网上(忘记哪里找的,多谢)
路由跳转:
1、<router-link to='aac'>aac</router-link>
import aac from './aac'
2、事件触发,然后 this.$router.push('/aac');
在main.js中
improt aac from './aac'
const routes = [{
path: '/aac',
name: 'aac',
component: aac
}]
const router = new VueRouter({
routes
})
图片引自网上(忘记哪里找的,多谢)
路由跳转:
1、<router-link to='aac'>aac</router-link>
import aac from './aac'
2、事件触发,然后 this.$router.push('/aac');
在main.js中
improt aac from './aac'
const routes = [{
path: '/aac',
name: 'aac',
component: aac
}]
const router = new VueRouter({
routes
})
更多推荐
已为社区贡献1条内容
所有评论(0)