jiangping
2024-06-28 43942a545271345ce26e40d82bb97138c5ea7611
h5/manifest.json
@@ -1,6 +1,6 @@
{
    "name" : "laborVisitors",
    "appid" : "__UNI__E3BA820",
    "appid" : "__UNI__BCCF400",
    "description" : "",
    "versionName" : "1.0.0",
    "versionCode" : "100",
@@ -81,7 +81,7 @@
    "h5" : {
        "router" : {
            "mode" : "hash",
            "base" : "/"
            "base" : "./"
        },
        // "base" : "/h5/"
        "devServer" : {
@@ -89,15 +89,17 @@
            "historyApiFallback" : true,
            "disableHostCheck" : true,
            "proxy" : {
                "/api" : {
                "/admin_interface" : {
                    // 这个字段名需与你配置的basePrefixUrl一致,系统识别到带有/dev-api请求的地址时,会在前面拼接上代理服务器地址
                    "target" : "http://192.168.0.143:10010", // 代理服务器域名或IP地址
                    "target" : "http://192.168.0.173/admin_interface", // 代理服务器域名或IP地址
                    // "target" : "http://192.168.0.135:10010", // 代理服务器域名或IP地址
                    "changeOrigin" : true, // 允许跨域 
                    "pathRewrite" : {
                        "^/api" : "" // 重写地址,如果实际接口中是不带/dev-api,需要将这个前缀置空,因为这个前缀只是为了识别用,识别完之后就没用了
                        "^/admin_interface" : "" // 重写地址,如果实际接口中是不带/dev-api,需要将这个前缀置空,因为这个前缀只是为了识别用,识别完之后就没用了
                    }
                }
            }
            },
            "https" : false
        }
    }
}