Просмотр исходного кода

fix: Support markdown to welcome msg

lejianwen 1 год назад
Родитель
Сommit
a1e5e9a9da
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/views/my/info.vue

+ 4 - 4
src/views/my/info.vue

@@ -1,7 +1,7 @@
1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <el-card :title="T('Userinfo')" shadow="hover">
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
         <el-form-item :label="T('Username')">
5
         <el-form-item :label="T('Username')">
6
           <div>{{ userStore.username }}</div>
6
           <div>{{ userStore.username }}</div>
7
         </el-form-item>
7
         </el-form-item>
@@ -39,7 +39,7 @@
39
 
39
 
40
 <script setup>
40
 <script setup>
41
   import changePwdDialog from '@/components/changePwdDialog.vue'
41
   import changePwdDialog from '@/components/changePwdDialog.vue'
42
-  import { ref } from 'vue'
42
+  import { computed, ref } from 'vue'
43
   import { useUserStore } from '@/store/user'
43
   import { useUserStore } from '@/store/user'
44
   import { useAppStore } from '@/store/app'
44
   import { useAppStore } from '@/store/app'
45
   import { bind, unbind } from '@/api/oauth'
45
   import { bind, unbind } from '@/api/oauth'
@@ -64,7 +64,7 @@
64
   }
64
   }
65
   getMyOauth()
65
   getMyOauth()
66
   const toBind = async (row) => {
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
     if (res) {
68
     if (res) {
69
       const { code, url } = res.data
69
       const { code, url } = res.data
70
       window.open(url)
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
 </script>
91
 </script>
92
 
92