From 8ef40fb1f6a9e184884c2f4692d0ef6451b6bead Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 03 七月 2026 11:32:59 +0800
Subject: [PATCH] 原材料下单:报告下载添加审批状态校验,避免跳转页面报错问题&配置修改
---
src/main.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main.js b/src/main.js
index 5f56508..ed0d00e 100644
--- a/src/main.js
+++ b/src/main.js
@@ -49,8 +49,9 @@
import { getToken } from "@/utils/auth";
// 鏃堕棿杞崲
import Moment from "moment";
-
+import Big from 'big.js'
// 鍏ㄥ眬鏂规硶鎸傝浇
+Vue.prototype.$Big = Big;
Vue.prototype.getDicts = getDicts;
Vue.prototype.getConfigKey = getConfigKey;
Vue.prototype.parseTime = parseTime;
@@ -64,7 +65,8 @@
Vue.prototype.HaveJson = (val) => {
return JSON.parse(JSON.stringify(val));
};
-Vue.prototype.javaApi = "http://192.168.21.53:8001/lims";
+// Vue.prototype.javaApi = process.env.NODE_ENV === "production"?"http://192.168.21.53:8001/lims":"http://127.0.0.1:8001/lims";
+Vue.prototype.javaApi = process.env.VUE_APP_BASE_URL && process.env.NODE_ENV==='production'?process.env.VUE_APP_BASE_URL : "http://127.0.0.1:8001/lims";
Vue.prototype.checkPermi = checkPermi;
Vue.prototype.uploadHeader = {
Authorization: "Bearer " + getToken(),
--
Gitblit v1.9.3