路有调整

This commit is contained in:
fofolee
2022-04-04 01:08:13 +08:00
parent ecd0b39e80
commit fa7fcd216b
3 changed files with 21 additions and 6 deletions

View File

@@ -21,17 +21,26 @@ export default defineComponent({
let version = utools.getAppVersion();
if (version < requiredVersion) {
this.$router.push({
path: `/needupdate/${version}-${requiredVersion}`,
name: "needupdate",
params: { version: version, requiredVersion: requiredVersion },
});
return;
}
utools.onPluginEnter((enter) => {
// 暗黑模式
this.$q.dark.set(utools.isDarkColors());
// 数据传递
localStorage["enterData"] = JSON.stringify(enter);
// 路由跳转
this.$router.push(enter.code);
let routeData = {
from: "uTools",
action: "run",
data: enter,
};
this.$router.push({
name: enter.code,
params: {
data: JSON.stringify(routeData),
},
});
});
},
},