super-page-runtime 2.0.60 → 2.0.62

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 { setSessionCache, getToken } from "agilebuilder-ui/src/utils/auth";
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.0.60",
3
+ "version": "2.0.62",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",