mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-21 02:57:54 +08:00
feat: 增强vue3代码生成
This commit is contained in:
@@ -108,6 +108,7 @@ import * as {SecondTableName}s from '@/api/{SecondTableName}s'
|
|||||||
import { parseTime, defaultVal } from '@/utils/index'
|
import { parseTime, defaultVal } from '@/utils/index'
|
||||||
import common from "@/extensions/common.js"
|
import common from "@/extensions/common.js"
|
||||||
import { getItem } from '@/utils/storage'
|
import { getItem } from '@/utils/storage'
|
||||||
|
import ColumnDefine from '@/interface/columnDefine'
|
||||||
|
|
||||||
//引入组件
|
//引入组件
|
||||||
import Sticky from '@/components/Sticky/index.vue'
|
import Sticky from '@/components/Sticky/index.vue'
|
||||||
@@ -193,13 +194,11 @@ const initCfg = function () {
|
|||||||
firstHeaderList.value = savedSettings
|
firstHeaderList.value = savedSettings
|
||||||
}
|
}
|
||||||
|
|
||||||
secondHeaderList.value = res.columnFields
|
const secondSavedSettings = getItem('{SecondTableName}s_column_settings')
|
||||||
// 尝试从存储中加载列设置
|
if (secondSavedSettings) {
|
||||||
const secondSavedSettings = getItem('{SecondTableName}s_column_settings')
|
// 将保存的设置合并到当前列表
|
||||||
if (secondSavedSettings) {
|
secondHeaderList.value = secondSavedSettings
|
||||||
// 将保存的设置合并到当前列表
|
}
|
||||||
secondHeaderList.value = secondSavedSettings
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------通用处理函数-------------------------------------
|
// ------------------------通用处理函数-------------------------------------
|
||||||
|
Reference in New Issue
Block a user