Commit 0fe37e5f authored by 罗超's avatar 罗超

配置全局资产url

parent 83c75ed9
...@@ -103,6 +103,7 @@ ...@@ -103,6 +103,7 @@
<script> <script>
import Lockr from "lockr" import Lockr from "lockr"
import {url_jump_zc} from "../../utils/url"
export default { export default {
props: { props: {
showObj: { showObj: {
...@@ -146,7 +147,8 @@ export default { ...@@ -146,7 +147,8 @@ export default {
let userinfo = this.getLocalStorage(); let userinfo = this.getLocalStorage();
let token=Lockr.get("Token"); let token=Lockr.get("Token");
// let url = "http://www.test.com:8080/#/Autologin?ObjInfo=" + token + "&SecretKey=" + userinfo.UploadConfig.SecretKey; // let url = "http://www.test.com:8080/#/Autologin?ObjInfo=" + token + "&SecretKey=" + userinfo.UploadConfig.SecretKey;
let url = "http://zcyx.oytour.com/#/Autologin?ObjInfo=" + token + "&SecretKey=" + userinfo.UploadConfig.SecretKey; // let url = "http://zcyx.oytour.com/#/Autologin?ObjInfo=" + token + "&SecretKey=" + userinfo.UploadConfig.SecretKey;
let url = url_jump_zc +"/#/Autologin?ObjInfo=" + token + "&SecretKey=" + userinfo.UploadConfig.SecretKey;
window.open(url) window.open(url)
}, },
}, },
......
...@@ -391,6 +391,7 @@ ...@@ -391,6 +391,7 @@
<script> <script>
import CheckDetails from "./CheckDetails.vue"; import CheckDetails from "./CheckDetails.vue";
import {getAuditChangeLogPageList,auditOrRefund,getPropertyAuditDetail} from "../../../api/administration/AssetsShenpi" import {getAuditChangeLogPageList,auditOrRefund,getPropertyAuditDetail} from "../../../api/administration/AssetsShenpi"
import {url_jump_zc} from "../../../utils/url"
export default { export default {
name: 'approvalDetails', name: 'approvalDetails',
components: { components: {
...@@ -415,7 +416,7 @@ export default { ...@@ -415,7 +416,7 @@ export default {
addMsg:{ addMsg:{
AuditDescription:'', AuditDescription:'',
ImageList:[], ImageList:[],
UseReceiveId:0, UseReceiveId:115,
AuditType:'', AuditType:'',
SignImage:'', SignImage:'',
}, },
...@@ -478,12 +479,7 @@ export default { ...@@ -478,12 +479,7 @@ export default {
methods:{ methods:{
GoZcUrl(){ GoZcUrl(){
let url=''; let url=url_jump_zc+"/#/Home";
if (!this.isOnline()) {
url="http://testerp.oytour.com:8080/#/Home";
}else{
url="http://zcyx.oytour.com/#/Home";
}
window.open(url) window.open(url)
}, },
inited (viewer){ inited (viewer){
......
...@@ -8,13 +8,11 @@ import { ...@@ -8,13 +8,11 @@ import {
Dialog, Dialog,
Notify Notify
} from 'quasar' } from 'quasar'
let url_zc='http://192.168.1.13:8087/api'
var showLoginMessageBox = false; var showLoginMessageBox = false;
axios.defaults.headers["Content-Type"] = "application/json;charset=UTF-8"; //application/x-www-form-urlencoded;charset=UTF-8 axios.defaults.headers["Content-Type"] = "application/json;charset=UTF-8"; //application/x-www-form-urlencoded;charset=UTF-8
let token=Lockr.get("Token"); let token=Lockr.get("Token");
const service = axios.create({ const service = axios.create({
baseURL: url_zc, baseURL: process.env.API_ZC,
timeout: 15000 timeout: 15000
}); });
......
export let url_jump_zc="http://zcyx.oytour.com"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment