随笔分类 -  vue

摘要:安装 @type/node 依赖包 npm install @types/node --save-dev 阅读全文
posted @ 2024-05-30 13:22 comeOnTryAgain 阅读(176) 评论(0) 推荐(0) 编辑
摘要:OK 项目启动成功 阅读全文
posted @ 2024-05-30 13:09 comeOnTryAgain 阅读(9) 评论(0) 推荐(0) 编辑
摘要:在 Vue CLI 创建的项目中,<%= BASE_URL %> 是一个模板字符串,它在构建过程中会被替换为实际的基础 URL。这个基础 URL 通常是在 vue.config.js 文件中定义的,或者在 Vue CLI 的默认配置中默认为 '/'(即根目录)。 favicon.ico 是一个网站的 阅读全文
posted @ 2024-05-29 21:00 comeOnTryAgain 阅读(615) 评论(0) 推荐(0) 编辑
摘要:ERROR Failed to compile with 1 error 20:32:04 error Conflict: Multiple assets emit different content to the same filename index.html ERROR in Conflict 阅读全文
posted @ 2024-05-29 20:49 comeOnTryAgain 阅读(228) 评论(0) 推荐(0) 编辑
摘要:在 vue 项目中如果运用sass时在特定的场景内在运行项目时会报错 scss 文件或报错 .vue 文件中的 lang=“scss” 有问题; 此处有可能是因为你电脑中的 node 版本与 node-sass 不匹配导致的,可使用 nvm 或重新下载对应版本的 node 进行重新下载依赖在运行; 阅读全文
posted @ 2022-08-05 09:47 comeOnTryAgain 阅读(471) 评论(0) 推荐(0) 编辑
摘要:一、配置与安装步骤: 1、在 Vue 项目的 src 文件夹下创建一个 config 文件夹: 2、在 config 文件夹中创建 rem.js: 3、将以下代码复制到 rem.js 中: // 基准大小 const baseSize = 32 // 设置 rem 函数 function setRe 阅读全文
posted @ 2021-08-30 19:16 comeOnTryAgain 阅读(407) 评论(0) 推荐(0) 编辑
摘要:第一步 给 table 设置一个 ref 属性 1 <el-table 2 :data="DepData" 3 stripe 4 ref="depTable" 5 > 6 <el-table-column type="selection" width="36"> </el-table-column> 阅读全文
posted @ 2021-06-07 14:57 comeOnTryAgain 阅读(629) 评论(0) 推荐(0) 编辑
摘要:vue-cli 启动项目时空白页面 在启动项目时 npm run serve / npm run dev 启动 vue 项目空白页;且终端及控制台都未报错 通过各种查阅发现在项目根目录中 vue-config.js 文件中设置了 publicPath 所以在启动时启动了个空白页 module.exp 阅读全文
posted @ 2021-06-02 16:52 comeOnTryAgain 阅读(4053) 评论(0) 推荐(0) 编辑
摘要:INFO Starting development server... ERROR Error: C - D:\T32890\Desktop\my-project\node_modules\@vue\cli-service\bin\vue-cli-service.js Error: Cannot f 阅读全文
posted @ 2021-05-21 11:01 comeOnTryAgain 阅读(1179) 评论(0) 推荐(0) 编辑
摘要:v-model的原理 很多同学在理解Vue的时候都把Vue的数据响应原理理解为双向绑定,但实际上这是不准确的,我们之前提到的数据响应,都是通过数据的改变去驱动DOM重新的变化,而双向绑定已有数据驱动DOM外,DOM的变化反过来影响数据,是一个双向关系,在Vue中,我们可以通过v-model来实现双向 阅读全文
posted @ 2019-11-05 15:53 comeOnTryAgain 阅读(815) 评论(0) 推荐(0) 编辑

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