Commit 5f72f444 authored by 黄奎's avatar 黄奎

页面修改

parent 072cf676
......@@ -55,12 +55,7 @@ export default {
Vue.prototype.domainManager = function () {
let domainUrl = '';
domainUrl = "http://192.168.2.214:8200";
// domainUrl = "https://localhost:5001";
domainUrl = "http://192.168.2.17:8088";
let javaUrldo = "";
// javaUrldo = locationName.indexOf('localhost') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://property.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.17:8088";
javaUrldo = "http://192.168.2.17:8088";
domainUrl = "https://localhost:5001";
let locationName = window.location.hostname;
if (locationName.indexOf('testerp.oytour') !== -1) {
domainUrl = "http://testapi.oytour.com";
......@@ -72,8 +67,6 @@ export default {
DomainUrl: domainUrl,
//常用提交数据URL
PostUrl: domainUrl + "/api/common/post",
JavaLocalFileStreamDownLoadUrl: javaUrldo,
};
return obj;
},
......@@ -193,7 +186,11 @@ export default {
var apiurl = this.domainManager().DomainUrl + cmd;
var timestamp = (new Date()).valueOf();
this.apiurl = apiurl;
if (!localStorage.mall_userInfo && localStorage.mall_userInfo != "" && this.$route.path.toLowerCase() != "/login") {
if (!localStorage.mall_userInfo && localStorage.mall_userInfo != ""
&& this.$route.path.toLowerCase() != "/login"
&& this.$route.path.toLowerCase() != "/register"
&& this.$route.path.toLowerCase() != "/forgetpassword"
) {
this.$router.push({
path: '/login'
})
......@@ -247,7 +244,7 @@ export default {
}, faildCall)
}
Vue.prototype.JavaGetLocalFile = function (cmd, msg, fileName, successCall) {
var apiurl = this.domainManager().JavaLocalFileStreamDownLoadUrl + cmd;
var apiurl = this.domainManager().DomainUrl + cmd;
var timestamp = (new Date()).valueOf();
if (!localStorage.mall_userInfo && localStorage.mall_userInfo != "" && this.$route.path.toLowerCase() != "/login") {
this.$router.push({
......
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