摘要: 控制台报错NavigationDuplicated 原因:vue-router升级3.1.0版本之后,引入promise的语法,出现的问题 解决方案: 1.为每一个增加回调函数,vue-router的开发者给出了解决方法 2.将vue-router版本降低到3.1.0版本以下 3.重写原型上的pus 阅读全文
posted @ 2022-02-23 10:30 w1ndz 阅读(272) 评论(0) 推荐(0)
摘要: 在根目录下,新建jsconfig.json文件 { "compilerOptions": { "baseUrl": "./", "paths": { "@/*": ["src/*"] } }, "exclude": ["node_modules", "dist"] } 阅读全文
posted @ 2022-02-23 10:28 w1ndz 阅读(35) 评论(0) 推荐(0)
摘要: 在根目录下新建vue.config.js文件,代码如下 module.exports = { lintOnSave: false, // 当保存时不进行eslint的检查 devServer: { open: true, // 自动打开 port: 8081, //修改启动的端口号 } } 阅读全文
posted @ 2022-02-23 10:27 w1ndz 阅读(219) 评论(0) 推荐(0)