使用@vitejs/plugin-legacy 配置vite.config.json 打开根目录index.html,添加脚本必须添加到所有script之后
![240](https://cdn2.jianshu.io/assets/default_avatar/12-aeeea4bedf10f2a12c0d50d626951489.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
IP属地:上海
使用@vitejs/plugin-legacy 配置vite.config.json 打开根目录index.html,添加脚本必须添加到所有script之后
mockjs 学习 i. 前台版 1)安装 2)新建mock文件 3)基础代码 4)全局引入 src/main.js 中 这样在相应位置调用接口,会发现已经被拦截 ii. 服...
Vuex学习 i. State 1)store中的属性,在state中定义 2)在组件中引用(一般在computed中): (1)直接: (2)辅助函数: ii. Gette...