diff --git a/.env.production b/.env.production index 1bc8606..178bedf 100644 --- a/.env.production +++ b/.env.production @@ -9,7 +9,7 @@ VUE_APP_PROCESSMODEL_API = 'http://192.168.99.72:11200' # VUE_APP_BASE_API = 'http://27.19.215.77:11100' # VUE_APP_BASE_API = 'http://27.16.212.58:11100' # VUE_APP_BASE_API = 'http://192.168.99.107:11100' -VUE_APP_BASE_API = 'http://192.168.99.107:11200' +VUE_APP_BASE_API = 'http://192.168.99.118:11200' # 如果接口是 http 形式, wss 需要改为 ws # VUE_APP_WS_API = 'ws://27.16.212.58:11110' diff --git a/public/static/config.js b/public/static/config.js index e0bca20..4817f50 100644 --- a/public/static/config.js +++ b/public/static/config.js @@ -4,7 +4,7 @@ window.g = { // ApiUrl: 'http://27.16.212.58:11100', // ApiUrl: 'http://192.168.99.71:11110', // ApiUrl: 'http://192.168.99.107:11100', - ApiUrl: 'http://192.168.99.107:11200', + ApiUrl: 'http://192.168.99.118:11200', AIDeepSeekUrl:'http://192.168.99.86:12123', ProcessModelUrl:'http://192.168.99.72:11200', } \ No newline at end of file diff --git a/src/views/components/category/preUpload4.vue b/src/views/components/category/preUpload4.vue index 6bec456..1281a60 100644 --- a/src/views/components/category/preUpload4.vue +++ b/src/views/components/category/preUpload4.vue @@ -382,7 +382,8 @@ export default { * @returns {Promise} 分片存在状态 */ async checkChunkExists(fileMd5, chunkIndex) { - const response = await axios.get('/api/minioUpload/chunk', { + const linkSrc = process.env.NODE_ENV === 'production' ? window.g.ApiUrl : process.env.VUE_APP_BASE_API + const response = await axios.get(linkSrc + '/api/minioUpload/chunk', { params: { fileMd5, chunkIndex }, headers: { 'Authorization': getToken() } }) @@ -409,8 +410,8 @@ export default { formData.append('file', chunkBlob, `${fileMd5}_${chunkIndex}`) formData.append('fileMd5', fileMd5) formData.append('chunkIndex', chunkIndex) - - const response = await axios.post('/api/minioUpload/chunk', formData, { + const linkSrc = process.env.NODE_ENV === 'production' ? window.g.ApiUrl : process.env.VUE_APP_BASE_API + const response = await axios.post(linkSrc + '/api/minioUpload/chunk', formData, { headers: { 'Content-Type': 'multipart/form-data', 'Authorization': getToken() @@ -523,7 +524,8 @@ export default { const jsonArray = await Promise.all(processFiles) // 调用合并接口 - const response = await axios.post('/api/minioUpload/merge', jsonArray, { + const linkSrc = process.env.NODE_ENV === 'production' ? window.g.ApiUrl : process.env.VUE_APP_BASE_API + const response = await axios.post(linkSrc + '/api/minioUpload/merge', jsonArray, { headers: { 'Authorization': getToken(), 'Content-Type': 'application/json' diff --git a/src/views/system/groupManage/index.vue b/src/views/system/groupManage/index.vue index 4e9515e..84dec25 100644 --- a/src/views/system/groupManage/index.vue +++ b/src/views/system/groupManage/index.vue @@ -209,13 +209,41 @@ export default { 'baseApi' ]) }, - created() { - }, - mounted() { + activated() { + this.categoryDatas = [] + this.categoryIds = [] + this.$refs.category && this.$refs.category.setCheckedKeys([]) + this.$refs.category && this.$refs.category.clearChecked() + this.$refs.category && this.$refs.category.doLayout() + FetchCategoryMenu().then(res => { this.categoryDatas = this.filterData(res) + }).catch(err => { + console.error('请求根节点数据失败:', err) + this.categoryDatas = [] }) }, + deactivated() { + this.categoryDatas = [] + this.categoryIds = [] + this.currentId = 0 + this.showButton = false + this.$refs.category && this.$refs.category.setCheckedKeys([]) + this.$refs.category && this.$refs.category.clearChecked() + }, + beforeDestroy() { + this.categoryDatas = [] + this.categoryIds = [] + this.$refs.category = null + }, + + created() { + }, + mounted() { + // FetchCategoryMenu().then(res => { + // this.categoryDatas = this.filterData(res) + // }) + }, methods: { getCategoryDataList(node, resolve) { console.log('node', node)