瀏覽代碼

perf(views): 优化“网关协议列表管理”页面,只查询正式协议

wangcong 3 周之前
父節點
當前提交
9d5f400c73
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      src/types/index.ts
  2. 1 0
      src/views/gateway-protocol/GatewayProtocol.vue

+ 1 - 0
src/types/index.ts

@@ -195,6 +195,7 @@ export interface ProtocolBaseInfo {
 
 export interface ProtocolListQuery extends PageParams {
   searchContent: string;
+  isDraft: 0 | 1;
 }
 
 export type ProtocolParamData = PageData<ProtocolParamInfo>;

+ 1 - 0
src/views/gateway-protocol/GatewayProtocol.vue

@@ -98,6 +98,7 @@ const getProtocolData = () => {
     const { records, total } = await getProtocolList({
       ...pageParams.value,
       searchContent: searchContent.value,
+      isDraft: 0,
     });
 
     protocolList.value = records;