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