src/views/tideLogin.vue
对比新文件 @@ -0,0 +1,15 @@ <template> <div></div> </template> <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>