feat: 同步规格优化
This commit is contained in:
@@ -71,6 +71,7 @@ import contentConfig from "./config/content";
|
||||
import editModalConfig from "./config/edit";
|
||||
import searchConfig from "./config/search";
|
||||
import { returnOptionsLabel } from "./config/config";
|
||||
import { isSyncStatus } from "@/utils/index";
|
||||
|
||||
const {
|
||||
searchRef,
|
||||
@@ -87,6 +88,14 @@ const {
|
||||
handleFilterChange,
|
||||
} = usePage();
|
||||
|
||||
if (isSyncStatus()) {
|
||||
if( JSON.stringify(contentConfig.toolbar)?.indexOf("add") != -1){
|
||||
contentConfig.toolbar?.splice(0, 1)
|
||||
}
|
||||
if( JSON.stringify(contentConfig.cols[contentConfig.cols.length-1].operat)?.indexOf("edit") != -1){
|
||||
contentConfig.cols[contentConfig.cols.length-1].operat?.splice(0, 1)
|
||||
}
|
||||
}
|
||||
// 新增
|
||||
async function handleAddClick() {
|
||||
addModalRef.value?.setModalVisible();
|
||||
|
||||
Reference in New Issue
Block a user