|
@@ -13,7 +13,7 @@
|
|
|
<img :src="loginMain" />
|
|
|
</div>
|
|
|
<img :src="loginBg" class="login-left-waves" />
|
|
|
- <div class="floor">托肯恒山科技(广州)有限公司 版本号:v2.00.1</div>
|
|
|
+ <div class="floor">托肯恒山科技(广州)有限公司 版本号:v{{ version }}</div>
|
|
|
</div>
|
|
|
<div class="login-right flex">
|
|
|
<div class="login-right-warp flex-margin">
|
|
@@ -46,13 +46,14 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts" name="loginIndex">
|
|
|
-import { defineAsyncComponent, onMounted, reactive, computed } from 'vue'
|
|
|
+import { defineAsyncComponent, onMounted, reactive, computed, ref } from 'vue'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
import { useThemeConfig } from '/@/stores/themeConfig'
|
|
|
import { NextLoading } from '/@/utils/loading'
|
|
|
import logoMini from '/src/assets/logo-com.png'
|
|
|
import loginMain from '/@/assets/login-main.svg'
|
|
|
import loginBg from '/@/assets/login-bg.svg'
|
|
|
+import { getFccVersion } from "/@/api/api";
|
|
|
|
|
|
// 引入组件
|
|
|
const Account = defineAsyncComponent(() => import('./component/account.vue'))
|
|
@@ -64,8 +65,10 @@ const storesThemeConfig = useThemeConfig()
|
|
|
const { themeConfig } = storeToRefs(storesThemeConfig)
|
|
|
const state = reactive({
|
|
|
tabsActiveName: 'account',
|
|
|
- isScan: false,
|
|
|
+ isScan: false
|
|
|
})
|
|
|
+let version = ref('');
|
|
|
+
|
|
|
|
|
|
// 获取布局配置信息
|
|
|
const getThemeConfig = computed(() => {
|
|
@@ -73,8 +76,16 @@ const getThemeConfig = computed(() => {
|
|
|
})
|
|
|
// 页面加载时
|
|
|
onMounted(() => {
|
|
|
+ getVersion();
|
|
|
NextLoading.done()
|
|
|
})
|
|
|
+
|
|
|
+//获取版本号
|
|
|
+const getVersion = async () => {
|
|
|
+ const res = await getFccVersion();
|
|
|
+ console.log(res)
|
|
|
+ version.value = res;
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|