摘要: import { Message } from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' Vue.prototype.$message = Message src/main.js加入代码 阅读全文
posted @ 2021-02-22 18:50 皮军旗 阅读(547) 评论(0) 推荐(0)
摘要: 在按需引入 element-ui 组件的 message 时候,每次进入页面的会自动出现 message 提示, 解决方法: 通过加载组件的方式引入即可 把 Vue.use(Message) 改为 Vue.prototype.$message = Message 或 Vue.component(Me 阅读全文
posted @ 2021-02-22 18:46 皮军旗 阅读(558) 评论(0) 推荐(0)
摘要: 修改vue.config.js module.exports = { configureWebpack: { devServer: { host: 'www.word.com', port: 8080, open: true, proxy: { "/api": { target: "https:// 阅读全文
posted @ 2021-02-22 10:26 皮军旗 阅读(853) 评论(0) 推荐(0)