super-page-runtime 2.0.59 → 2.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ import { getBaseUrl, getRealRestApiPath, upperFirstCase, packageTemplateFiles, d
|
|
|
2
2
|
import http from "agilebuilder-ui/src/utils/request";
|
|
3
3
|
import { getI18n } from "agilebuilder-ui/src/utils/util";
|
|
4
4
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
5
|
-
import {
|
|
5
|
+
import { getToken, setSessionCache } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { getComponentRef } from "../global-refs.js";
|
|
7
7
|
import eventBus from "../eventBus.js";
|
|
8
8
|
import axios from "axios";
|
|
@@ -862,6 +862,10 @@ function downloadTemplateFunc(params) {
|
|
|
862
862
|
if (pageContext.version) {
|
|
863
863
|
param += "&pageVersion=" + pageContext.version;
|
|
864
864
|
}
|
|
865
|
+
const token = getToken();
|
|
866
|
+
if (token) {
|
|
867
|
+
param += "&JWT=" + token;
|
|
868
|
+
}
|
|
865
869
|
if (configureBase) {
|
|
866
870
|
const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
|
|
867
871
|
param += "&isPermission=" + isPermission;
|