Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
zhaoxuebing 5 months ago
parent
commit
2465099c79
  1. 10
      src/utils/systemParam.ts
  2. 4
      src/views/infra/customInterface/index.vue

10
src/utils/systemParam.ts

@ -6,7 +6,7 @@ const reportUrl = ref(import.meta.env.VITE_REPORT_URL)
const mode = ref(import.meta.env.MODE)
// 获取baseUrl
export const getBaseUrl = () => {
if(mode.value === 'production') {
if(mode.value === 'prod') {
return systemConfig.baseUrl
} else {
return baseUrl.value
@ -14,7 +14,7 @@ export const getBaseUrl = () => {
}
// 获取uploadUrl
export const getUploadUrl = () => {
if(mode.value === 'production') {
if(mode.value === 'prod') {
return systemConfig.uploadUrl
} else {
return uploadUrl.value
@ -22,7 +22,7 @@ export const getUploadUrl = () => {
}
// 获取interfaceUrl
export const getInterfaceUrl = () => {
if(mode.value === 'production') {
if(mode.value === 'prod') {
return systemConfig.interfaceUrl
} else {
return interfaceUrl.value
@ -30,7 +30,7 @@ export const getInterfaceUrl = () => {
}
// 获取jmreportBaseUrl
export const getJmreportBaseUrl = () => {
if(mode.value === 'production') {
if(mode.value === 'prod') {
return systemConfig.jmreportBaseUrl
} else {
return jmreportBaseUrl.value
@ -38,7 +38,7 @@ export const getJmreportBaseUrl = () => {
}
// 获取reportUrl
export const getReportUrl = () => {
if(mode.value === 'production') {
if(mode.value === 'prod') {
return systemConfig.reportUrl
} else {
return reportUrl.value

4
src/views/infra/customInterface/index.vue

@ -2,9 +2,9 @@
<IFrame :src="src"/>
</template>
<script lang="ts" setup name="CustomInterface">
import { jmreportBaseUrl } from '@/utils/systemParam'
import { getJmreportBaseUrl } from '@/utils/systemParam'
// import { getAccessToken, getTenantId } from '@/utils/auth'
const src = jmreportBaseUrl()
const src = getJmreportBaseUrl()
// window.MAGIC_EDITOR_CONFIG = {
// request: {

Loading…
Cancel
Save