mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-24 20:45:06 +08:00
添加版本检测
This commit is contained in:
@@ -16,6 +16,15 @@ export default defineComponent({
|
||||
},
|
||||
methods: {
|
||||
pluginEnterEvent() {
|
||||
// 版本检测
|
||||
const requiredVersion = "2.6.1";
|
||||
let version = utools.getAppVersion();
|
||||
if (version < requiredVersion) {
|
||||
this.$router.push({
|
||||
path: `/needupdate/${version}-${requiredVersion}`,
|
||||
});
|
||||
return;
|
||||
}
|
||||
utools.onPluginEnter((enter) => {
|
||||
localStorage["enterData"] = JSON.stringify(enter);
|
||||
this.$router.push(enter.code);
|
||||
|
||||
Reference in New Issue
Block a user