【代码优化】h5-router-mode: hash 改为 history 解决分享链接跳转失败

pull/79/head
puhui999 2024-08-14 11:08:55 +08:00
parent e53cb63ce4
commit 532503b65b
1 changed files with 216 additions and 231 deletions

View File

@ -68,10 +68,7 @@
"schemes" : "shopro" "schemes" : "shopro"
}, },
"ios" : { "ios" : {
"urlschemewhitelist": [ "urlschemewhitelist" : [ "baidumap", "iosamap" ],
"baidumap",
"iosamap"
],
"dSYMs" : false, "dSYMs" : false,
"privacyDescription" : { "privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "需要同意访问您的相册选取图片才能完善该条目", "NSPhotoLibraryUsageDescription" : "需要同意访问您的相册选取图片才能完善该条目",
@ -82,9 +79,7 @@
"urltypes" : "shopro", "urltypes" : "shopro",
"capabilities" : { "capabilities" : {
"entitlements" : { "entitlements" : {
"com.apple.developer.associated-domains": [ "com.apple.developer.associated-domains" : [ "applinks:shopro.sheepjs.com" ]
"applinks:shopro.sheepjs.com"
]
} }
}, },
"idfa" : true "idfa" : true
@ -103,18 +98,12 @@
}, },
"payment" : { "payment" : {
"weixin" : { "weixin" : {
"__platform__": [ "__platform__" : [ "ios", "android" ],
"ios",
"android"
],
"appid" : "wxae7a0c156da9383b", "appid" : "wxae7a0c156da9383b",
"UniversalLinks" : "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/" "UniversalLinks" : "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
}, },
"alipay" : { "alipay" : {
"__platform__": [ "__platform__" : [ "ios", "android" ]
"ios",
"android"
]
} }
}, },
"share" : { "share" : {
@ -124,9 +113,7 @@
} }
} }
}, },
"orientation": [ "orientation" : [ "portrait-primary" ],
"portrait-primary"
],
"splashscreen" : { "splashscreen" : {
"androidStyle" : "common", "androidStyle" : "common",
"iosStyle" : "common", "iosStyle" : "common",
@ -197,9 +184,7 @@
"lazyCodeLoading" : "requiredComponents", "lazyCodeLoading" : "requiredComponents",
"usingComponents" : {}, "usingComponents" : {},
"permission" : {}, "permission" : {},
"requiredPrivateInfos": [ "requiredPrivateInfos" : [ "chooseAddress" ]
"chooseAddress"
]
}, },
"mp-alipay" : { "mp-alipay" : {
"usingComponents" : true "usingComponents" : true
@ -216,7 +201,7 @@
"h5" : { "h5" : {
"template" : "index.html", "template" : "index.html",
"router" : { "router" : {
"mode": "hash", "mode" : "history",
"base" : "./" "base" : "./"
}, },
"sdkConfigs" : { "sdkConfigs" : {