zydx-plus 1.35.594 → 1.35.595

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.35.594",
3
+ "version": "1.35.595",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -349,7 +349,7 @@ export default {
349
349
  },
350
350
  async getAccessToken(v) {
351
351
  return axios({
352
- url: `/${this.apiPrefix}/voice/getBaiduToken`,
352
+ url: `/${window.linkApi.apiPrefix?window.linkApi.apiPrefix:'zydx'}/voice/getBaiduToken`,
353
353
  method: 'post',
354
354
  headers: {
355
355
  'Authorization': localStorage.getItem('sessionId') || sessionStorage.getItem('sessionId'),
@@ -897,7 +897,7 @@ export default {
897
897
  headers: {
898
898
  Authorization: localStorage.getItem("remember") === "1" ? localStorage.getItem('sessionId') : sessionStorage.getItem('sessionId')
899
899
  },
900
- server: `/${this.apiPrefix}/open/function/lessonResource/editOfficeFile`,
900
+ server: `/${window.linkApi.apiPrefix?window.linkApi.apiPrefix:'zydx'}/open/function/lessonResource/editOfficeFile`,
901
901
  // server: '/zydx/lessonResource/editOfficeFile',
902
902
  }
903
903
  }
@@ -906,7 +906,7 @@ export default {
906
906
  type: Object,
907
907
  default: () => {
908
908
  return {
909
- server: `/${this.apiPrefix}/lessonResource/upload/img`,
909
+ server: `/${window.linkApi.apiPrefix?window.linkApi.apiPrefix:'zydx'}/lessonResource/upload/img`,
910
910
  headers: {
911
911
  Authorization: localStorage.getItem("remember") === "1" ? localStorage.getItem('sessionId') : sessionStorage.getItem('sessionId')
912
912
  },
@@ -925,7 +925,7 @@ export default {
925
925
  type: Object,
926
926
  default: () => {
927
927
  return {
928
- server: `/${this.apiPrefix}/fileanex/uploadfile`,
928
+ server: `/${window.linkApi.apiPrefix?window.linkApi.apiPrefix:'zydx'}/fileanex/uploadfile`,
929
929
  fieldName: 'file',
930
930
  maxFileSize: 100 * 1024 * 1024,
931
931
  meta: {},
@@ -4025,7 +4025,7 @@ export default {
4025
4025
  const xhr = new XMLHttpRequest()
4026
4026
  // xhr.open('GET', 'http://192.168.15.124:8888/zydx/voice/getDesKeyId')
4027
4027
  // xhr.setRequestHeader('Authorization', '4a7ab02c-11b7-420f-bf85-ac5549b2aa81')
4028
- xhr.open('GET', `/${this.apiPrefix}/voice/getVoideKey`)
4028
+ xhr.open('GET', `/${window.linkApi.apiPrefix?window.linkApi.apiPrefix:'zydx'}/voice/getVoideKey`)
4029
4029
  xhr.setRequestHeader('Authorization', token)
4030
4030
  this.error = true
4031
4031
  xhr.onreadystatechange = () => {
@@ -725,7 +725,7 @@ export default {
725
725
  const xhr = new XMLHttpRequest()
726
726
  // xhr.open('GET', 'http://192.168.15.124:8888/zydx/voice/getDesKeyId')
727
727
  // xhr.setRequestHeader('Authorization', '7a129186-7e51-431d-b965-735dfed8e459')
728
- xhr.open('GET', `/${this.apiPrefix}/voice/getVoideKey`)
728
+ xhr.open('GET', `/${window.linkApi.apiPrefix?window.linkApi.apiPrefix:'zydx'}/voice/getVoideKey`)
729
729
  xhr.setRequestHeader('Authorization', token)
730
730
  this.error = true
731
731
  xhr.onreadystatechange = () => {
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.35.594',
92
+ version: '1.35.595',
93
93
  install,
94
94
  Calendar,
95
95
  Message,