测试服务器配置修改
This commit is contained in:
parent
02fcf1d5c3
commit
589aec8ce3
|
|
@ -1,38 +1,41 @@
|
||||||
import { getToDoNum } from '@/api/system/notice';
|
import { getToDoNum } from '@/api/system/notice'
|
||||||
//0 测试 1生产
|
//0 测试 1生产
|
||||||
let fileType=1;
|
let fileType = 0
|
||||||
|
|
||||||
export function lookFile() {
|
export function lookFile() {
|
||||||
if(fileType===0){
|
if (fileType === 0) {
|
||||||
return 'http://192.168.0.14:1999/file/statics' //14服务器
|
return 'http://192.168.0.14:1999/file/statics' //14服务器
|
||||||
}else{
|
} else {
|
||||||
return 'http://218.21.27.6:1999/file/statics' //生产服务器
|
return 'http://218.21.27.6:1999/file/statics' //生产服务器
|
||||||
}
|
}
|
||||||
// return 'http://112.29.103.165:14413/file/statics' //1.6演示服务器
|
// return 'http://112.29.103.165:14413/file/statics' //1.6演示服务器
|
||||||
}
|
}
|
||||||
|
|
||||||
export function lookFaceFile() {
|
export function lookFaceFile() {
|
||||||
if(fileType===0){
|
if (fileType === 0) {
|
||||||
return 'http://192.168.0.14:1999/file/statics/' //14服务器
|
return 'http://192.168.0.14:1999/file/statics/' //14服务器
|
||||||
}else{
|
} else {
|
||||||
return 'http://218.21.27.6:1999/file/statics/' //生产服务器
|
return 'http://218.21.27.6:1999/file/statics/' //生产服务器
|
||||||
}
|
}
|
||||||
//return 'http://112.29.103.165:14413/file/statics/' //1.6演示服务器
|
//return 'http://112.29.103.165:14413/file/statics/' //1.6演示服务器
|
||||||
// return 'http://218.21.27.6:1999/file/statics/' //生产服务器
|
// return 'http://218.21.27.6:1999/file/statics/' //生产服务器
|
||||||
}
|
}
|
||||||
|
|
||||||
export function filePreview() {
|
export function filePreview() {
|
||||||
if(fileType===0){
|
if (fileType === 0) {
|
||||||
return 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器
|
return 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器
|
||||||
}else{
|
} else {
|
||||||
return 'http://218.21.27.6:18013/onlinePreview?url=' //生产服务器
|
return 'http://218.21.27.6:18013/onlinePreview?url=' //生产服务器
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// return 'http://112.29.103.165:8012/onlinePreview?url=' //1.6演示服务器
|
// return 'http://112.29.103.165:8012/onlinePreview?url=' //1.6演示服务器
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function lookMioIoFile() {
|
export function lookMioIoFile() {
|
||||||
if(fileType===0){
|
if (fileType === 0) {
|
||||||
return 'http://192.168.0.14:9090/nxdt-courseware-1' //14服务器
|
return 'http://192.168.0.14:9090/nxdt-courseware-1' //14服务器
|
||||||
}else{
|
} else {
|
||||||
return 'http://218.21.27.6:19090/nxdt-courseware' //生产服务器
|
return 'http://218.21.27.6:19090/nxdt-courseware' //生产服务器
|
||||||
}
|
}
|
||||||
// return 'http://192.168.0.14:9090/nxdt-courseware-1' //14服务器
|
// return 'http://192.168.0.14:9090/nxdt-courseware-1' //14服务器
|
||||||
|
|
@ -170,7 +173,7 @@ export function sprintf(str) {
|
||||||
var args = arguments,
|
var args = arguments,
|
||||||
flag = true,
|
flag = true,
|
||||||
i = 1
|
i = 1
|
||||||
str = str.replace(/%s/g, function () {
|
str = str.replace(/%s/g, function() {
|
||||||
var arg = args[i++]
|
var arg = args[i++]
|
||||||
if (typeof arg === 'undefined') {
|
if (typeof arg === 'undefined') {
|
||||||
flag = false
|
flag = false
|
||||||
|
|
@ -253,6 +256,7 @@ export function handleTree(data, id, parentId, children) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return tree
|
return tree
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue