This commit is contained in:
Jesse-Ma
2023-03-22 14:28:24 +08:00
parent bb7085adaa
commit b31563aaab

View File

@@ -23,7 +23,9 @@ module.exports = defineConfig({
"iview": 'ViewUI', "iview": 'ViewUI',
"file-saver": 'saveAs', "file-saver": 'saveAs',
"clipboard": "ClipboardJS", "clipboard": "ClipboardJS",
"vue-i18n": "VueI18n" "vue-i18n": "VueI18n",
"html2canvas":"html2canvas",
"wasm_flate":"wasm_flate"
}; };
// 为生产环境修改配置 // 为生产环境修改配置
@@ -65,8 +67,8 @@ module.exports = defineConfig({
devServer: { devServer: {
proxy: { proxy: {
"/note": { "/note": {
// target: "https://flagnote.com/", // 后台接口域名 target: "https://flagnote.com/", // 后台接口域名
target: "http://localhost:10000/", // 后台接口域名 // target: "http://localhost:10000/", // 后台接口域名
secure: false, // 如果是https接口需要配置这个参数 secure: false, // 如果是https接口需要配置这个参数
changeOrigin: true, //是否跨域 changeOrigin: true, //是否跨域
pathRewrite: { pathRewrite: {