|
|
@@ -1,7 +1,7 @@
|
|
1
|
1
|
<template>
|
|
2
|
2
|
<div>
|
|
3
|
3
|
<el-card :title="T('Userinfo')" shadow="hover">
|
|
4
|
|
- <el-form class="info-form" ref="form" label-width="120px" label-suffix=":" >
|
|
|
4
|
+ <el-form class="info-form" ref="form" label-width="120px" label-suffix=":">
|
|
5
|
5
|
<el-form-item :label="T('Username')">
|
|
6
|
6
|
<div>{{ userStore.username }}</div>
|
|
7
|
7
|
</el-form-item>
|
|
|
@@ -39,7 +39,7 @@
|
|
39
|
39
|
|
|
40
|
40
|
<script setup>
|
|
41
|
41
|
import changePwdDialog from '@/components/changePwdDialog.vue'
|
|
42
|
|
- import { ref } from 'vue'
|
|
|
42
|
+ import { computed, ref } from 'vue'
|
|
43
|
43
|
import { useUserStore } from '@/store/user'
|
|
44
|
44
|
import { useAppStore } from '@/store/app'
|
|
45
|
45
|
import { bind, unbind } from '@/api/oauth'
|
|
|
@@ -64,7 +64,7 @@
|
|
64
|
64
|
}
|
|
65
|
65
|
getMyOauth()
|
|
66
|
66
|
const toBind = async (row) => {
|
|
67
|
|
- const res = await bind({ op: row.op}).catch(_ => false)
|
|
|
67
|
+ const res = await bind({ op: row.op }).catch(_ => false)
|
|
68
|
68
|
if (res) {
|
|
69
|
69
|
const { code, url } = res.data
|
|
70
|
70
|
window.open(url)
|
|
|
@@ -86,7 +86,7 @@
|
|
86
|
86
|
|
|
87
|
87
|
}
|
|
88
|
88
|
|
|
89
|
|
- const html = marked(appStore.setting.hello)
|
|
|
89
|
+ const html = computed(_ => marked(appStore.setting.hello))
|
|
90
|
90
|
|
|
91
|
91
|
</script>
|
|
92
|
92
|
|