fix: 修改typo错误
This commit is contained in:
parent
f41ac738f4
commit
702791603d
@ -35,7 +35,7 @@ export function getThemeImg(val: string) {
|
|||||||
return themeList.filter((v) => v.value === val)?.[0]?.loginBackground || 'default'
|
return themeList.filter((v) => v.value === val)?.[0]?.loginBackground || 'default'
|
||||||
}
|
}
|
||||||
|
|
||||||
export const defautSetting = {
|
export const defaultSetting = {
|
||||||
icon: '',
|
icon: '',
|
||||||
loginLogo: '',
|
loginLogo: '',
|
||||||
loginImage: '',
|
loginImage: '',
|
||||||
|
|||||||
@ -136,7 +136,7 @@ import { onBeforeRouteLeave } from 'vue-router'
|
|||||||
import type { FormInstance, FormRules, UploadFiles } from 'element-plus'
|
import type { FormInstance, FormRules, UploadFiles } from 'element-plus'
|
||||||
import { cloneDeep } from 'lodash'
|
import { cloneDeep } from 'lodash'
|
||||||
import LoginPreview from './LoginPreview.vue'
|
import LoginPreview from './LoginPreview.vue'
|
||||||
import { themeList, defautSetting } from '@/utils/theme'
|
import { themeList, defaultSetting } from '@/utils/theme'
|
||||||
import ThemeApi from '@/api/theme'
|
import ThemeApi from '@/api/theme'
|
||||||
import { MsgSuccess, MsgError } from '@/utils/message'
|
import { MsgSuccess, MsgError } from '@/utils/message'
|
||||||
import useStore from '@/stores'
|
import useStore from '@/stores'
|
||||||
@ -199,7 +199,7 @@ function resetTheme() {
|
|||||||
function resetForm() {
|
function resetForm() {
|
||||||
themeForm.value = {
|
themeForm.value = {
|
||||||
theme: themeForm.value.theme,
|
theme: themeForm.value.theme,
|
||||||
...defautSetting
|
...defaultSetting
|
||||||
}
|
}
|
||||||
user.setTheme(themeForm.value)
|
user.setTheme(themeForm.value)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user