07 2022 档案
摘要:修改.eslintrc.js文件的规则如下:
阅读全文
摘要:属性或方法“$store”未在实例上定义,就是获取不到store呗, 关于获取不到store,可能有好多坑,我找到三个坑,我遇到的就是第三个 1.在mian.js 中,创建实例时,store应该小写,这是定义好了的,也可以写成store:Store 2.在store.js中,创建store实例时,应
阅读全文
摘要:解决方案: 在vue.config.js中添加 devServer: {host: ‘localhost’,port: 8080 } const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig(
阅读全文