|
|
@@ -87,7 +87,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import { defineProps, reactive, onMounted, onUnmounted } from 'vue'
|
|
|
+import {defineProps, reactive, onMounted, onUnmounted, ref} from 'vue'
|
|
|
import useUserInfo from '@/stores/modules/user'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import iconsz from './assets/shezhi@2x.png'
|
|
|
@@ -96,10 +96,12 @@ import gengxin from './assets/gengxin.svg'
|
|
|
import icpList from '@/utils/ipc'
|
|
|
import { getRouterUrl } from '@/utils/appfun'
|
|
|
import client from '@/stores/modules/client'
|
|
|
+import packageJson from '@/../../package.json';
|
|
|
|
|
|
const clientStore = client()
|
|
|
const useUserInfoStore = useUserInfo()
|
|
|
|
|
|
+const currentVersion = ref(packageJson.version);
|
|
|
// 定义 menu 项的类型
|
|
|
interface MenuItem {
|
|
|
name?: string //名称
|
|
|
@@ -156,7 +158,7 @@ const menuType = reactive({
|
|
|
click: openDeveloper
|
|
|
},
|
|
|
ota: {
|
|
|
- name: '版本更新',
|
|
|
+ name: '当前版本:'+currentVersion.value,
|
|
|
click: openOTA
|
|
|
}
|
|
|
})
|