From 89380e6260a75d1d3b94de687ebcc2f50d50659d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 03 Feb 2026 15:44:33 +0800
Subject: [PATCH] feat:环境变量配置调整
---
applications/task-work-order/src/App.vue | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/applications/task-work-order/src/App.vue b/applications/task-work-order/src/App.vue
index 87347b7..45a5f68 100644
--- a/applications/task-work-order/src/App.vue
+++ b/applications/task-work-order/src/App.vue
@@ -1,17 +1,27 @@
<template>
- <router-view />
+ <router-view />
</template>
-
-
<script setup>
+import { loginWithMiniProgramApi } from '@/api/zkxt'
+import { useStore } from 'vuex'
+
+const store = useStore()
+
+function getXTToken() {
+ loginWithMiniProgramApi({ username: 'admin' }).then(res => {
+ store.commit('setXtToken', res.data.data.access_token)
+ })
+}
+getXTToken()
+setInterval(getXTToken, 600000)
</script>
<style>
html,
body,
#app {
- width: 100%;
- height: 100%;
+ width: 100%;
+ height: 100%;
}
</style>
--
Gitblit v1.9.3