chore(组件): components-diy 必须使用easyncom系统,不然在微信上无法渲染
This commit is contained in:
@@ -111,9 +111,8 @@ export default {
|
||||
}
|
||||
|
||||
},
|
||||
onShow() {
|
||||
|
||||
this.init();
|
||||
async onShow() {
|
||||
await this.init();
|
||||
},
|
||||
onHide() {
|
||||
if (this.storeTimeOut) {
|
||||
|
||||
@@ -35,7 +35,7 @@ export const adaptSubpackageUrl = (url) => {
|
||||
'/pages/goods/': '/pages_goods/',
|
||||
'/pages/contact/': '/pages_tool/contact/',
|
||||
'/pages/member/': '/pages_tool/member/',
|
||||
'/pages/vr': '/pages_tool/vr/'
|
||||
'/pages/vr': '/pages_tool/vr/',
|
||||
};
|
||||
|
||||
// 构建正则表达式
|
||||
@@ -58,7 +58,20 @@ export const adaptSubpackageUrl = (url) => {
|
||||
});
|
||||
}
|
||||
|
||||
return replacePrefix(url);
|
||||
const currentUrl = replacePrefix(url);
|
||||
|
||||
// 分包子包导致的路径变化,需要根据前后关系修复
|
||||
const subPackagesMap = {
|
||||
'/pages_tool/member/index': '/pages_tool/member/basic/index',
|
||||
}
|
||||
|
||||
|
||||
// 修复url
|
||||
if (subPackagesMap[currentUrl]) {
|
||||
return subPackagesMap[currentUrl];
|
||||
}
|
||||
|
||||
return currentUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user