feat(web): 优化统一的Controller和Service接口
This commit is contained in:
@@ -3,7 +3,7 @@ import {
|
||||
resourceDetailDialog,
|
||||
resourceEditeDialog
|
||||
} from "../../components/resource/dialog-resource.js";
|
||||
import {apiGet, apiPost, crudCommonOptions, userOnly} from "../../components/constants.js";
|
||||
import {apiGet, crudCommonOptions, userOnly} from "../../components/constants.js";
|
||||
|
||||
export function tabData() {
|
||||
return {
|
||||
@@ -14,7 +14,7 @@ export function tabData() {
|
||||
{
|
||||
type: 'crud',
|
||||
api: {
|
||||
...apiPost('${base}/data_resource/list')
|
||||
...apiGet('${base}/data_resource/list')
|
||||
},
|
||||
...crudCommonOptions(),
|
||||
headerToolbar: [
|
||||
|
||||
Reference in New Issue
Block a user