From 9aae2af6f3937a7d99ec619b51f457002cef969f Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 03 十一月 2025 14:29:37 +0800
Subject: [PATCH] 档案管理-添加导出功能
---
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