super-page-runtime 2.0.62 → 2.0.64
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 { getToken, setSessionCache } from "agilebuilder-ui/src/utils/auth";
|
|
5
|
+
import { getToken, getSessionCache, 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";
|
|
@@ -866,6 +866,11 @@ function downloadTemplateFunc(params) {
|
|
|
866
866
|
if (token) {
|
|
867
867
|
param += "&JWT=" + token;
|
|
868
868
|
}
|
|
869
|
+
let runCurrentRoleKey = "_RUN_CURRENT_ROLE";
|
|
870
|
+
const currentRole = getSessionCache(runCurrentRoleKey);
|
|
871
|
+
if (currentRole) {
|
|
872
|
+
param += "&" + runCurrentRoleKey + "=" + currentRole;
|
|
873
|
+
}
|
|
869
874
|
if (configureBase) {
|
|
870
875
|
const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
|
|
871
876
|
param += "&isPermission=" + isPermission;
|