feat(avatar): support production H5 token SSO
This commit is contained in:
@@ -138,7 +138,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { reactive, ref, computed, onUnmounted } from 'vue'
|
||||
import { reactive, ref, computed, onMounted, onUnmounted } from 'vue'
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
import { useUserStore } from '@/store/user'
|
||||
import { useAvatarStore } from '@/store/avatar'
|
||||
@@ -161,6 +161,14 @@ const password = ref('')
|
||||
const loading = ref(false)
|
||||
const errorMsg = ref('')
|
||||
|
||||
onMounted(() => {
|
||||
const ssoError = sessionStorage.getItem('hh_sso_error')
|
||||
if (ssoError) {
|
||||
errorMsg.value = ssoError
|
||||
sessionStorage.removeItem('hh_sso_error')
|
||||
}
|
||||
})
|
||||
|
||||
const counting = ref(false)
|
||||
const countdown = ref(60)
|
||||
let timer: any = null
|
||||
|
||||
Reference in New Issue
Block a user