02 2022 档案

摘要:控制台报错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 阅读(244) 评论(0) 推荐(0) 编辑
摘要:在根目录下,新建jsconfig.json文件 { "compilerOptions": { "baseUrl": "./", "paths": { "@/*": ["src/*"] } }, "exclude": ["node_modules", "dist"] } 阅读全文
posted @ 2022-02-23 10:28 w1ndz 阅读(28) 评论(0) 推荐(0) 编辑
摘要:在根目录下新建vue.config.js文件,代码如下 module.exports = { lintOnSave: false, // 当保存时不进行eslint的检查 devServer: { open: true, // 自动打开 port: 8081, //修改启动的端口号 } } 阅读全文
posted @ 2022-02-23 10:27 w1ndz 阅读(202) 评论(0) 推荐(0) 编辑
摘要:overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; //几行 -webkit-box-orient: vertical; 阅读全文
posted @ 2022-02-19 20:12 w1ndz 阅读(91) 评论(0) 推荐(0) 编辑
摘要:VScode==>设置==>用户代码片段==>新建全局片段==>取名 { "Snippet Name": { "prefix": "rcc", // 触发片段的快捷键 "body": [ "import React, { Component } from 'react';", "", "export 阅读全文
posted @ 2022-02-15 16:39 w1ndz 阅读(175) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示