Ver Fonte

提交打包插件

Lijy há 1 ano atrás
pai
commit
00cb07bac4

+ 7 - 1
fhKeeper/formulahousekeeper/plugIn/form-design-master/src/generate/GenerateForm.vue

@@ -99,7 +99,13 @@ export default defineComponent({
               }))
               return
             }
-            fetch(item.options.remoteFunc)
+            const token: any = sessionStorage.getItem('token')
+            fetch(item.options.remoteFunc, {
+              headers: {
+                "Content-type": " application/x-www-form-urlencoded; charset=UTF-8",
+                "Token": token
+              }
+            })
               .then(resp => resp.json())
               .then((json) => {
                 if (json instanceof Array) {