将vue发到tauri上npm run tauri dev
启动后的后台api的请求地址是http://ip:port/xxx
为啥npm run tauri build
打包后变成了http://tauri.localhost:port/xxx
tauri.conf.json
"tauri": {
"allowlist": {
"all": true,
"http": {
"all": true,
"request": true,
"scope": [
"http://192.168.0.101:18088/*"
]
}
},
"bundle": {
"active": true,
"category": "DeveloperTool",
"copyright": "",
"deb": {
"depends": []
},
"externalBin": [],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "com.tauri.build",
"longDescription": "",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "",
"targets": "all",
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
}
},
"security": {
"dangerousUseHttpScheme": true
},
"updater": {
"active": false
},
"windows": [
{
"fullscreen": false,
"height": 600,
"resizable": true,
"title": "vue-admin-template",
"width": 1200
}
]
}