前端vue跨域
1.config/api.js 94行加了||token config/config.js 第一行export const apiBaseUrl = 'https://www.wuku9.com/api/'注释掉 加了第二行 export const apiBaseUrl = '/api/' manifest.json 源代码 原先是"devServer" : { "port" : 80, "https" : false }, 修改为 "devServer" : { "port" : 8089, "https" : false, "proxy": { "/api": { "target": "https://www.wuku9.com/", "changeOrigin": true, "secure": false } } },