mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-28 07:05:03 +08:00
添加版本检测
This commit is contained in:
40
src/pages/NeedUpdate.vue
Normal file
40
src/pages/NeedUpdate.vue
Normal file
@@ -0,0 +1,40 @@
|
||||
<template>
|
||||
<div
|
||||
class="fullscreen bg-blue text-white text-center q-pa-md flex flex-center"
|
||||
>
|
||||
<div>
|
||||
<div style="font-size: 20vh">需要升级</div>
|
||||
|
||||
<div class="text-h4" style="opacity: 0.4">
|
||||
uTools 当前版本 {{ version }}<br />然而这个插件是基于
|
||||
{{ requiredversion }} 版本开发的,低于该版本可能会出现不可预料的问题
|
||||
</div>
|
||||
|
||||
<q-btn
|
||||
class="q-mt-xl"
|
||||
color="white"
|
||||
text-color="blue"
|
||||
unelevated
|
||||
@click="update()"
|
||||
label="去官网升级"
|
||||
no-caps
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
requiredversion: this.$route.params.requiredversion,
|
||||
version: this.$route.params.version,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
update() {
|
||||
utools.shellOpenExternal("https://u.tools/");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user