mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 18:06:44 +08:00
内网环境判断
This commit is contained in:
@@ -630,7 +630,7 @@
|
||||
let urlSign = encodeURIComponent(encrypt(beforeUrl));
|
||||
cookies.set('PLAYSIGN_TIME', ctime); //写客户端的cookie保存
|
||||
//以下判断是为了区分本地环境和服务器环境
|
||||
if (true) {
|
||||
if (process.env.NODE_ENV == 'development') {
|
||||
this.blobUrl = process.env.VUE_APP_FILE_BASE_URL + u;
|
||||
} else {
|
||||
this.blobUrl = process.env.VUE_APP_BASE_API + '/xboe/m/course/cware/resource?sign=' + urlSign;
|
||||
|
||||
Reference in New Issue
Block a user