fix sql
This commit is contained in:
@@ -188,6 +188,7 @@ import {
|
||||
isSettingLocked,
|
||||
isSettingActive,
|
||||
isSwitchOn,
|
||||
normalizeSettingRow,
|
||||
resolveSettingFieldType
|
||||
} from './settingTypes'
|
||||
|
||||
@@ -416,10 +417,11 @@ watch(
|
||||
async function initConfig() {
|
||||
try {
|
||||
loading.value = true
|
||||
baseData.value =
|
||||
const rows =
|
||||
(isSystemMode.value
|
||||
? await getSystemConfiguration()
|
||||
: await getEditableConfiguration()) ?? []
|
||||
baseData.value = rows.map(normalizeSettingRow)
|
||||
if (isSystemMode.value) {
|
||||
applyBannerEnabledFromRows(baseData.value)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user