Browse Source

请求参authtoken

shanbinzhang 1 month ago
parent
commit
8db3b0cf8e
2 changed files with 7 additions and 2 deletions
  1. 2 1
      src/CustomElement/EtaChart.ce.vue
  2. 5 1
      src/CustomElement/EtaTable.ce.vue

+ 2 - 1
src/CustomElement/EtaChart.ce.vue

@@ -32,7 +32,8 @@ async function getChartData(){
     try {
         const res=await chartInfoByCode({
             UniqueCode:params.code,
-            IsReplace:1
+            IsReplace:1,
+            AuthToken: params.authToken || ''
         })
         if(res.Ret!==200) return
         chartInfo.value=res.Data.ChartInfo

+ 5 - 1
src/CustomElement/EtaTable.ce.vue

@@ -27,7 +27,11 @@ const setDefaultSource=(sourceText)=>{
 }
 
 async function getTableData(){
-    const res = await infoByCode({  UniqueCode: params.code, FromScene: Number(params.fromScene||'') });
+    const res = await infoByCode({  
+        UniqueCode: params.code, 
+        FromScene: Number(params.fromScene||''),
+        AuthToken: params.authToken || ''
+    });
     if(res.Ret !== 200) return
 
     info.value=res.Data