Commit dd005f68 by Tianqing Liu

feat: 不同环境,执行不同的history前缀

1 parent 78bb34e1
......@@ -20,9 +20,9 @@ const routes = [
},
];
// const isDev = process.env.NODE_ENV === "development";
const isDev = process.env.NODE_ENV === "development";
const router = createRouter({
history: createWebHistory("/appH5/"),
history: createWebHistory(!isDev ? "/apph5/" : ""),
routes,
});
......
......@@ -938,7 +938,7 @@ const pictureProcess = (imgUrl) => {
window.postMessage(params, '*');
uni.postMessage(params, '*');
/* if (paramObj.newLevel) {
wx.miniProgram.redirectTo({
wx.miniProgram.redirectTo({*
url: `/pages/tour/inspectionDetail/index?action=capture&picUrl=${imgUrl}&id=${paramObj.tid}`,
});
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!