合集-vue

摘要:先把package.json 里面的"babel-plugin-transform-runtime"删除,install 一下, 然后把babelrc中的‘plugins’里面transfrom-runtime删除,在dev一下就行了, 参考文献地址:https://blog.csdn.net/u0 阅读全文
posted @ 2021-04-20 12:02 monologuse 阅读(112) 评论(0) 推荐(0)
摘要:这只要在src同级添加postcss.config.js文件 同时文件 里面写上这些,重新跑就没问题了 module.exports = { plugins: { 'autoprefixer': {browsers: 'last 5 version'} }} 阅读全文
posted @ 2021-04-23 11:31 monologuse 阅读(92) 评论(0) 推荐(0)
摘要:此错误来自sass-loader。semver不匹配,因为node-sass @latest为v5.0.0,而sass-loader期望值为^ 4.0.0。他们的存储库中存在一个未解决的问题,需要对其进行修复。解决方案:卸载node-sass npm uninstall node-sass // 如 阅读全文
posted @ 2021-05-26 09:51 monologuse 阅读(24764) 评论(0) 推荐(0)
摘要:添加这行就行了,在el-table中绑定一个ref,在写下面这段代码就行了updated() { this.$refs.tab.doLayout()}, 阅读全文
posted @ 2021-04-29 16:59 monologuse 阅读(1192) 评论(0) 推荐(0)
摘要:判断不同的id 可进行不同的操作,这边按自己的需求来 getSummaries(param) { const { columns, data } = param const sums = [] columns.forEach((column, index) => { if (index 0) { / 阅读全文
posted @ 2021-04-28 15:12 monologuse 阅读(2388) 评论(0) 推荐(0)
摘要:可在router 中添加 const originalPush = Router.prototype.pushRouter.prototype.push = function push(location, onResolve, onReject) { if (onResolve || onRejec 阅读全文
posted @ 2021-04-28 14:39 monologuse 阅读(5096) 评论(0) 推荐(0)
摘要:因为element-plus 1.2.0-beta.1以后移除了,所以需要自己引入 npm install @element-plus/icons //引入 按需引入 js import { ArrowDown } from '@element-plus/icons' export default 阅读全文
posted @ 2022-01-11 11:14 monologuse 阅读(3288) 评论(0) 推荐(1)
摘要:’ try_files $uri $uri/ /index.html’ 是支持 vue-router mode 为 history 的关键部分,不可省略 阅读全文
posted @ 2021-10-05 17:38 monologuse 阅读(78) 评论(0) 推荐(0)
摘要:createWebHistory路由模式路径不带#号(生产环境下不能直接访问项目,需要nginx转发) http://localhost:8080/#/ const router = createRouter({ history: createWebHistory(), routes }); cre 阅读全文
posted @ 2021-09-09 15:20 monologuse 阅读(1186) 评论(0) 推荐(0)
摘要:使用 ::v-deep 替代 ::v-deep.van-nav-bar{ background-color: var(--backgroundColor);} 阅读全文
posted @ 2021-08-09 18:22 monologuse 阅读(664) 评论(0) 推荐(0)
摘要:<div :sryle="{ '--colorStyle':colorStyle}"></div> data() { return { colorStyle: '#ffffff' }}, created() { const style = 'aaaa' if (style 'dark') { thi 阅读全文
posted @ 2021-07-24 16:37 monologuse 阅读(412) 评论(0) 推荐(0)
摘要:1. vue create <项目名> ? Please pick a preset: (Use arrow keys) > Default ([Vue 2] babel, eslint) 默认vue2模板 vue3-project ([Vue 3] node-sass, babel, typesc 阅读全文
posted @ 2021-05-27 10:51 monologuse 阅读(361) 评论(0) 推荐(0)