Commit 5545abf549b92b4b93d027b7e67eccd81c34bb24
1 parent
d5512a07
perf: encode about software description
Showing
4 changed files
with
18 additions
and
2 deletions
... | ... | @@ -37,7 +37,11 @@ |
37 | 37 | :text="t('layout.header.dropdownItemChangePassword')" |
38 | 38 | icon="ant-design:unlock-twotone" |
39 | 39 | /> |
40 | - <MenuItem key="aboutSoftware" text="关于软件" icon="ant-design:message-outline" /> | |
40 | + <MenuItem | |
41 | + key="aboutSoftware" | |
42 | + :text="handleDecode(t('routes.aboutSoftware.aboutSoftware'))" | |
43 | + icon="ant-design:message-outline" | |
44 | + /> | |
41 | 45 | <MenuItem |
42 | 46 | v-if="getUseLockPage" |
43 | 47 | key="lock" |
... | ... | @@ -77,6 +81,8 @@ |
77 | 81 | import { useRouter } from 'vue-router'; |
78 | 82 | import { usePermission } from '/@/hooks/web/usePermission'; |
79 | 83 | import AboutSoftwareModal from '../AboutSoftwareModal.vue'; |
84 | + import { AesEncryption } from '/@/utils/cipher'; | |
85 | + import { cacheCipher } from '/@/settings/encryptionSetting'; | |
80 | 86 | |
81 | 87 | type MenuEvent = 'logout' | 'doc' | 'lock' | 'personal' | 'changePassword' | 'aboutSoftware'; |
82 | 88 | |
... | ... | @@ -176,7 +182,15 @@ |
176 | 182 | router.push('/system/changePassword'); |
177 | 183 | }; |
178 | 184 | |
185 | + const encryption = new AesEncryption(cacheCipher); | |
186 | + const handleDecode = (string: string) => { | |
187 | + return encryption.decryptByAES(string); | |
188 | + }; | |
189 | + | |
190 | + console.log(encryption.encryptByAES('关于软件')); | |
191 | + | |
179 | 192 | return { |
193 | + handleDecode, | |
180 | 194 | updataPersonlData, |
181 | 195 | refreshPersonlData, |
182 | 196 | refreshPersonalFunc, | ... | ... |