|
@@ -22,8 +22,8 @@ import {onLoad, onShow, onReady, onUnload} from '@dcloudio/uni-app'
|
|
import {errorToast, successToast, toPdfPreview, querySelect} from "@/utils/tools";
|
|
import {errorToast, successToast, toPdfPreview, querySelect} from "@/utils/tools";
|
|
import {getStorage} from "@/utils/storage";
|
|
import {getStorage} from "@/utils/storage";
|
|
import {useAppStore} from "@/store";
|
|
import {useAppStore} from "@/store";
|
|
-import website from '@/config/index';
|
|
|
|
import wbsApi from '~api/data-fill/wbs';
|
|
import wbsApi from '~api/data-fill/wbs';
|
|
|
|
+import {getFormApiUrl} from '@/config/envApi';
|
|
|
|
|
|
const store = useAppStore()
|
|
const store = useAppStore()
|
|
const instance = getCurrentInstance().proxy
|
|
const instance = getCurrentInstance().proxy
|
|
@@ -58,7 +58,7 @@ onShow(() => {
|
|
|
|
|
|
//表格地址
|
|
//表格地址
|
|
const webSrc = ref('');
|
|
const webSrc = ref('');
|
|
-const envUrl = process.env.NODE_ENV === 'development' ? website.formUrl.test : website.formUrl.base
|
|
|
|
|
|
+const envUrl = getFormApiUrl()
|
|
const htmlsrc = `${envUrl}/#/app/table-form?source=app&type=data-fill`
|
|
const htmlsrc = `${envUrl}/#/app/table-form?source=app&type=data-fill`
|
|
|
|
|
|
//渲染完成
|
|
//渲染完成
|