Commit f05ccda5 authored by yun's avatar yun

修改回显调用方式--liu

parent 788a1924
...@@ -6,6 +6,8 @@ VUE_APP_BASE_API = 'http://192.168.5.47/api/education/v1' ...@@ -6,6 +6,8 @@ VUE_APP_BASE_API = 'http://192.168.5.47/api/education/v1'
VUE_APP_BASE_API2 = 'http://192.168.5.47' VUE_APP_BASE_API2 = 'http://192.168.5.47'
VUE_APP_BASE_API3 = 'http://221.239.114.20:6789/' VUE_APP_BASE_API3 = 'http://221.239.114.20:6789/'
VUE_APP_BASE_API4 = 'http://192.168.5.201:8084' VUE_APP_BASE_API4 = 'http://192.168.5.201:8084'
# 直接外链访问地址(不走网关的后台地址)
VUE_APP_BASE_API5 = 'http://192.168.5.201:8081'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled. # to control whether the babel-plugin-dynamic-import-node plugin is enabled.
......
...@@ -6,6 +6,8 @@ VUE_APP_BASE_API = 'http://192.168.5.47/api/education/v1' ...@@ -6,6 +6,8 @@ VUE_APP_BASE_API = 'http://192.168.5.47/api/education/v1'
VUE_APP_BASE_API2 = 'http://192.168.5.47' VUE_APP_BASE_API2 = 'http://192.168.5.47'
VUE_APP_BASE_API3 = 'http://221.239.114.20:6789/' VUE_APP_BASE_API3 = 'http://221.239.114.20:6789/'
VUE_APP_BASE_API4 = 'http://192.168.5.201:8084' VUE_APP_BASE_API4 = 'http://192.168.5.201:8084'
# 直接外链访问地址(不走网关的后台地址)
VUE_APP_BASE_API5 = 'http://192.168.5.201:8081'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled. # to control whether the babel-plugin-dynamic-import-node plugin is enabled.
......
...@@ -6,3 +6,5 @@ VUE_APP_BASE_API = '/api/education/v1' ...@@ -6,3 +6,5 @@ VUE_APP_BASE_API = '/api/education/v1'
VUE_APP_BASE_API2 = '' VUE_APP_BASE_API2 = ''
VUE_APP_BASE_API3 = 'http://221.239.114.20:6789/ VUE_APP_BASE_API3 = 'http://221.239.114.20:6789/
VUE_APP_BASE_API4 = 'http://192.168.5.191:7044' VUE_APP_BASE_API4 = 'http://192.168.5.191:7044'
# 直接外链访问地址(不走网关的后台地址)
VUE_APP_BASE_API5 = 'http://192.168.5.191:7043'
...@@ -196,7 +196,7 @@ export function deleteBChapter(parameter) { ...@@ -196,7 +196,7 @@ export function deleteBChapter(parameter) {
// 预览文件 // 预览文件
export function getFileAtView(parameter) { export function getFileAtView(parameter) {
return axios({ return axios({
url: api.BChapter + '/getFileAtView', url: process.env.VUE_APP_BASE_API5 + api.BChapter + '/getFileAtView',
method: 'get', method: 'get',
params: parameter params: parameter
}); });
......
...@@ -1584,7 +1584,7 @@ ...@@ -1584,7 +1584,7 @@
getReadyUrl(params) { getReadyUrl(params) {
let that = this let that = this
return new Promise((resolve,reject) =>{ return new Promise((resolve,reject) =>{
that.eduUtil.ajaxGetUtil(that.interfaceName.getFileAtView,params,(function (res) { that.eduUtil.ajaxGetUtil(process.env.VUE_APP_BASE_API5 + '/' + that.interfaceName.getFileAtView,params,(function (res) {
resolve(res) resolve(res)
}),(function (err) { }),(function (err) {
reject(err) reject(err)
......
...@@ -996,7 +996,7 @@ ...@@ -996,7 +996,7 @@
getReadyUrl(params) { getReadyUrl(params) {
let that = this let that = this
return new Promise((resolve,reject) =>{ return new Promise((resolve,reject) =>{
that.eduUtil.ajaxGetUtil(that.interfaceName.getFileAtView,params,(function (res) { that.eduUtil.ajaxGetUtil(process.env.VUE_APP_BASE_API5 + '/' + that.interfaceName.getFileAtView,params,(function (res) {
resolve(res) resolve(res)
}),(function (err) { }),(function (err) {
reject(err) reject(err)
......
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