feat: 新增拼团
This commit is contained in:
@@ -25,6 +25,16 @@ export default {
|
||||
});
|
||||
let uuid = plus.device.uuid;
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
if (typeof window !== "undefined" && window.location) {
|
||||
const pathname = window.location.pathname || "";
|
||||
if (pathname && pathname !== "/" && pathname.includes("pages/")) {
|
||||
const cleanPath = pathname.startsWith("/") ? pathname.slice(1) : pathname;
|
||||
const search = window.location.search || "";
|
||||
window.location.replace(`${window.location.origin}/#/${cleanPath}${search}`);
|
||||
}
|
||||
}
|
||||
// #endif
|
||||
},
|
||||
onShow: function () {
|
||||
console.log("App Show");
|
||||
|
||||
Reference in New Issue
Block a user