赞
踩
在vue.config.js文件中
-
- module.exports = {
- productionSourceMap:false,
- // 关闭ESLINT校验工具
- lintOnSave: false,
- //配置代理跨域
- devServer: {
- proxy: {
- "/api": {
- target: "http://gmall-h5-api.atguigu.cn",
- },
- },
- },
- };
在jsconfig.json文件中配置
- {
- "compilerOptions": {
- "baseUrl": "./",
- "paths": {
- "@/*": ["src/*"]
- }
- },
- "exclude": ["node_modules", "dist"]
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。