From 648003a577ef7a03046269c77fc5cc64199945e7 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 20 一月 2026 17:06:47 +0800
Subject: [PATCH] Merge branch 'dev_tide' into dev_tide_zlglxt_xinlan
---
src/views/tideLogin.vue | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/src/views/tideLogin.vue b/src/views/tideLogin.vue
index e4a82f7..c9ae3d4 100644
--- a/src/views/tideLogin.vue
+++ b/src/views/tideLogin.vue
@@ -1,15 +1,23 @@
<template>
<div></div>
</template>
-<script setup>
+<script>
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(() => { });
- })
+export default {
+ data() {
+ return {}
+ },
+ created() {
+ this.goLogin()
+ },
+ computed: {},
+ methods: {
+ goLogin() {
+ useUserStore().TideLogin({code : this.$route.query.code}).then(() => {
+ this.$router.push({ path: this.redirect || "/" }).catch(() => { });
+ })
+ }
+ }
}
-goLogin()
</script>
<style scoped></style>
--
Gitblit v1.9.3