|
@@ -7,7 +7,7 @@ import tokenData from '~src/router/modules/token'
|
|
|
import { setStoreValue } from '~src/utils/storage'
|
|
|
import { logout, refreshToken, userLogin } from '~api/user'
|
|
|
import { userConfigInfo, userConfigSave } from '~api/other'
|
|
|
-import { ArrToOneObj, arrIndex, getArrValue, getObjValue } from 'js-fast-way'
|
|
|
+import { ArrToOneObj, arrIndex, getArrValue, getObjValue, isNullES } from 'js-fast-way'
|
|
|
import { useOsTheme } from 'hc-vue3-ui'
|
|
|
import { setAppName } from '~uti/tools'
|
|
|
import website from '~src/config'
|
|
@@ -101,7 +101,9 @@ export const initUserConfigInfo = async () => {
|
|
|
store.setOrderServiceTipModal(opinionView ?? 1)
|
|
|
store.setShotWebRtc(shotWebRtc)
|
|
|
store.setShotWebRtc(fullScreen)
|
|
|
- store.setTreeWidth(treeWidth ?? 440)
|
|
|
+ const treeStoreWidth = isNullES(treeWidth) ? 440 : treeWidth
|
|
|
+ store.setTreeWidth(treeStoreWidth)
|
|
|
+ await userConfigSave({ treeWidth: treeStoreWidth })
|
|
|
return Promise.resolve(true)
|
|
|
} else {
|
|
|
await userConfigSave({
|