chore: fix profile toggle view
This commit is contained in:
parent
18c1f3f993
commit
011c2a3a26
2
components.d.ts
vendored
2
components.d.ts
vendored
@ -4,10 +4,12 @@
|
|||||||
|
|
||||||
declare module 'vue' {
|
declare module 'vue' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
|
CarbonDicomOverlay: typeof import('~icons/carbon/dicom-overlay')['default']
|
||||||
CarbonEdit: typeof import('~icons/carbon/edit')['default']
|
CarbonEdit: typeof import('~icons/carbon/edit')['default']
|
||||||
CarbonErase: typeof import('~icons/carbon/erase')['default']
|
CarbonErase: typeof import('~icons/carbon/erase')['default']
|
||||||
CarbonHome: typeof import('~icons/carbon/home')['default']
|
CarbonHome: typeof import('~icons/carbon/home')['default']
|
||||||
CarbonLanguage: typeof import('~icons/carbon/language')['default']
|
CarbonLanguage: typeof import('~icons/carbon/language')['default']
|
||||||
|
CarbonWarning: typeof import('~icons/carbon/warning')['default']
|
||||||
Footer: typeof import('./src/components/Footer.vue')['default']
|
Footer: typeof import('./src/components/Footer.vue')['default']
|
||||||
MenuLocales: typeof import('./src/components/MenuLocales.vue')['default']
|
MenuLocales: typeof import('./src/components/MenuLocales.vue')['default']
|
||||||
MessageBox: typeof import('./src/components/MessageBox.vue')['default']
|
MessageBox: typeof import('./src/components/MessageBox.vue')['default']
|
||||||
|
@ -314,7 +314,7 @@ const refresh = () => {
|
|||||||
const onItem = (data: { root: string, src: string, _itm: any, idx: number }) => {
|
const onItem = (data: { root: string, src: string, _itm: any, idx: number }) => {
|
||||||
switch(data.root) {
|
switch(data.root) {
|
||||||
case 'info':
|
case 'info':
|
||||||
const source = useState().datalang.value[i18n.locale.value] ? 'corelang': 'core'
|
const source = useState().datalang.value[i18n.locale.value] && useState().datalang.value[i18n.locale.value].corelang && useState().datalang.value[i18n.locale.value].corelang[data.src] ? 'corelang': 'core'
|
||||||
if (source === 'corelang') {
|
if (source === 'corelang') {
|
||||||
if (data.idx > -1) {
|
if (data.idx > -1) {
|
||||||
useState().datalang.value[i18n.locale.value][source][data.src][data.idx].auth.show = !useState().datalang.value[i18n.locale.value][source][data.src][data.idx].auth.show
|
useState().datalang.value[i18n.locale.value][source][data.src][data.idx].auth.show = !useState().datalang.value[i18n.locale.value][source][data.src][data.idx].auth.show
|
||||||
|
Loading…
Reference in New Issue
Block a user