From 79508b77b225b1e572fdd1ef94e88b01c92c9064 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期四, 11 十二月 2025 16:20:43 +0800
Subject: [PATCH] 决策分析	BI大屏	员工总数去掉 决策分析	BI大屏	设备待保养,待维修数据没有根据状态统计 协同办公	通知公告	新增公告时可以自行输入公告类型(可输入可选择)

---
 src/views/tideLogin.vue |   26 +++++++++-----------------
 1 files changed, 9 insertions(+), 17 deletions(-)

diff --git a/src/views/tideLogin.vue b/src/views/tideLogin.vue
index a96165e..e4a82f7 100644
--- a/src/views/tideLogin.vue
+++ b/src/views/tideLogin.vue
@@ -1,23 +1,15 @@
 <template>
   <div></div>
 </template>
-<script>
-import store from "@/store";
-export default {
-  data() {
-    return {}
-  },
-  created() {
-    this.goLogin()
-  },
-  computed: {},
-  methods: {
-     goLogin() {
-      store.dispatch('TideLogin', {code : this.$route.query.code}).then(() => {
-        this.$router.push({ path: this.redirect || "/" }).catch(() => { });
-      })
-    }
-  }
+<script setup>
+import useUserStore from '@/store/modules/user'
+const userStore = useUserStore()
+let { proxy } = getCurrentInstance()
+function goLogin() {
+  userStore.TideLogin({code : proxy.$route.query.code}).then(() => {
+    proxy.$router.push({ path: redirect || "/" }).catch(() => { });
+  })
 }
+goLogin()
 </script>
 <style scoped></style>

--
Gitblit v1.9.3