初始提交
This commit is contained in:
35
pages/login/sso-redirect.vue
Normal file
35
pages/login/sso-redirect.vue
Normal file
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<view class="">
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
useUserStore
|
||||
} from '@/store/modules/user'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
token: ''
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
this.token = e.token
|
||||
this.init()
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
const userStore = useUserStore()
|
||||
userStore.setToken(this.token)
|
||||
this.show = false
|
||||
uni.hideLoading()
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index'
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user