Просмотр исходного кода

feat: 标注时候调用方法保存当前标注信息

cuiyalong 10 месяцев назад
Родитель
Сommit
8b7e3aa660

+ 3 - 1
frontend/src/views/CodeList.vue

@@ -124,7 +124,7 @@ import { useRouter } from 'vue-router';
 import { useStore } from 'vuex';
 import { ElMessage, ElMessageBox } from 'element-plus'
 import { BrowserOpenURL, EventsOn } from "../../wailsjs/runtime"
-import { VerifySpiderConfig, ServerActionUpdateCodeState } from "../../wailsjs/go/main/App"
+import { VerifySpiderConfig, ServerActionUpdateCodeState, ServerActionCurrentOpenTab } from "../../wailsjs/go/main/App"
 import Breadcrumb from "../components/Breadcrumb.vue"
 import EditSpider from "../components/spider/EditSpider.vue"
 import RunSpiderDialog from "../components/spider/RunSpiderDialog.vue"
@@ -515,6 +515,8 @@ const editDialogMarkClick = (row) => {
         showClose: true,
         duration: 3000,
     });
+    const mark = getMarkWithRow(row)
+    ServerActionCurrentOpenTab(mark)
     BrowserOpenURL(row.href)
 }
 

+ 2 - 0
frontend/wailsjs/go/main/App.d.ts

@@ -43,6 +43,8 @@ export function ServerActionClaimCodes():Promise<main.Result>;
 
 export function ServerActionCodeList(arg1:{[key: string]: any}):Promise<main.Result>;
 
+export function ServerActionCurrentOpenTab(arg1:{[key: string]: any}):Promise<main.Result>;
+
 export function ServerActionGetModifyUsers():Promise<main.Result>;
 
 export function ServerActionUpdateCode(arg1:{[key: string]: any}):Promise<main.Result>;

+ 4 - 0
frontend/wailsjs/go/main/App.js

@@ -82,6 +82,10 @@ export function ServerActionCodeList(arg1) {
   return window['go']['main']['App']['ServerActionCodeList'](arg1);
 }
 
+export function ServerActionCurrentOpenTab(arg1) {
+  return window['go']['main']['App']['ServerActionCurrentOpenTab'](arg1);
+}
+
 export function ServerActionGetModifyUsers() {
   return window['go']['main']['App']['ServerActionGetModifyUsers']();
 }