yh-i18n 2.3.3 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/language.vue +4 -4
- package/package.json +1 -1
package/language.vue
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
split-button
|
|
4
4
|
class="language-dropdown"
|
|
5
5
|
trigger="click"
|
|
6
|
-
@command="setLang">
|
|
6
|
+
@command="(cmd) => { if (cmd !== 'link' && cmd !== 'switch') setLang(cmd) }">
|
|
7
7
|
{{ title }}
|
|
8
8
|
<template #dropdown>
|
|
9
9
|
<el-dropdown-menu>
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
{{ lo.label }}
|
|
14
14
|
</el-dropdown-item>
|
|
15
15
|
<el-dropdown-item divided disabled v-if="isDev">
|
|
16
|
-
|
|
16
|
+
{{ct('翻译工具')}}
|
|
17
17
|
</el-dropdown-item>
|
|
18
|
-
<el-dropdown-item v-if="isDev">
|
|
18
|
+
<el-dropdown-item command="link" v-if="isDev">
|
|
19
19
|
<el-link type="warning" href="/#/translate">
|
|
20
20
|
{{ ct("翻译") }}
|
|
21
21
|
</el-link>
|
|
22
22
|
</el-dropdown-item>
|
|
23
|
-
<el-dropdown-item v-if="isDev" @click.prevent>
|
|
23
|
+
<el-dropdown-item command="switch" v-if="isDev" @click.prevent>
|
|
24
24
|
<el-switch
|
|
25
25
|
:active-text="ct('收集')"
|
|
26
26
|
:inactive-text="ct('不收集')"
|