mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-29 20:32:44 +08:00
完善版本过低提示
This commit is contained in:
parent
ed706aba17
commit
8f68659411
@ -42,8 +42,9 @@ export default defineComponent({
|
||||
},
|
||||
checkVer() {
|
||||
const requiredVersion = "2.6.1";
|
||||
let version = utools.getAppVersion();
|
||||
if (version < requiredVersion) {
|
||||
// 有可能版本低到没有这个接口
|
||||
let version = utools.getAppVersion?.();
|
||||
if (!version || version < requiredVersion) {
|
||||
this.$router.push({
|
||||
name: "needupdate",
|
||||
params: { version: version, requiredVersion: requiredVersion },
|
||||
|
@ -6,7 +6,7 @@
|
||||
<div style="font-size: 20vh">需要升级</div>
|
||||
|
||||
<div class="text-h4" style="opacity: 0.4">
|
||||
uTools 当前版本 {{ version }}<br />然而这个插件是基于
|
||||
uTools 当前版本 {{ version || "过低" }}<br />然而这个插件是基于
|
||||
{{ requiredversion }} 版本开发的,低于该版本可能会出现不可预料的问题
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user