🐎 ci(接口地址): 替换接口地址

dev
zhangjiabao 12 months ago
parent 421145e948
commit ffcd5e5198

@ -1,5 +1,12 @@
'use strict' /*
* @Author: zhangjiabao
* @Date: 2024-01-02 15:41:16
* @LastEditors: zhangjiabao
* @LastEditTime: 2024-01-29 10:52:09
* @FilePath: /luoo_manage_fe/config/prod.env.js
*/
"use strict";
module.exports = { module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
BASE_API: '"https://easy-mock.com/mock/5950a2419adc231f356a6636/vue-admin"', BASE_API: '"http://testapi.indie.cn:9012"'
} };

@ -1,8 +1,8 @@
<!-- <!--
* @Author: zhangjiabao * @Author: zhangjiabao
* @Date: 2024-01-24 10:09:33 * @Date: 2024-01-24 10:09:33
* @LastEditors: Please set LastEditors * @LastEditors: zhangjiabao
* @LastEditTime: 2024-01-28 18:13:03 * @LastEditTime: 2024-01-29 11:03:47
* @FilePath: /luoo_manage_fe/src/views/article/articleModify.vue * @FilePath: /luoo_manage_fe/src/views/article/articleModify.vue
--> -->
<!-- <!--
@ -48,7 +48,11 @@
></el-cascader> ></el-cascader>
</el-form-item> </el-form-item>
<el-form-item prop="userId" label="期刊作者"> <el-form-item prop="userId" label="期刊作者">
<el-select placeholder="输入发布人名称" size="small" v-model="data.userId"> <el-select
placeholder="输入发布人名称"
size="small"
v-model="data.userId"
>
<el-option <el-option
v-for="item in publisher" v-for="item in publisher"
:label="item.name" :label="item.name"
@ -60,7 +64,7 @@
<el-form-item prop="image" label="上传封面"> <el-form-item prop="image" label="上传封面">
<img style="width: 170px;height: 120px;" :src="data.image" /> <img style="width: 170px;height: 120px;" :src="data.image" />
<el-upload <el-upload
action="/luoo-music/cms/journal/upload/image" :action="`${uploadBase}/luoo-music/cms/journal/upload/image`"
:on-preview="handlePreview" :on-preview="handlePreview"
:on-remove="handleRemove" :on-remove="handleRemove"
:before-remove="beforeRemove" :before-remove="beforeRemove"
@ -85,7 +89,7 @@
<el-row> <el-row>
<el-col :span="4"> <el-col :span="4">
<el-upload <el-upload
action="/luoo-music/cms/song/batch" :action="`${uploadBase}/luoo-music/cms/song/batch`"
:on-preview="handlePreview" :on-preview="handlePreview"
:on-remove="handleRemove" :on-remove="handleRemove"
:before-remove="beforeRemove" :before-remove="beforeRemove"
@ -344,6 +348,7 @@ export default {
}, },
data() { data() {
return { return {
uploadBase: process.env.BASE_API,
selectTag: [], selectTag: [],
lyricDialog: { lyricDialog: {
visible: false, visible: false,
@ -420,8 +425,8 @@ export default {
for (let j in this.remoteTagList) { for (let j in this.remoteTagList) {
let jId = this.remoteTagList[j].value; let jId = this.remoteTagList[j].value;
if(tag === jId){ if (tag === jId) {
this.selectTag.push([jId]) this.selectTag.push([jId]);
} }
for (let k in this.remoteTagList[j].children) { for (let k in this.remoteTagList[j].children) {
let kId = this.remoteTagList[j].children[k].value; let kId = this.remoteTagList[j].children[k].value;
@ -588,7 +593,7 @@ export default {
musicApi.getLyric(row.id).then(res => { musicApi.getLyric(row.id).then(res => {
this.lyricDialog.data = res.data.lyric; this.lyricDialog.data = res.data.lyric;
this.lyricDialog.loading = false; this.lyricDialog.loading = false;
}) });
}, },
/** /**
* 弹窗关闭按扭点击事件 * 弹窗关闭按扭点击事件
@ -641,7 +646,7 @@ export default {
this.data.songs[songIndex] = newQueryRes.data; this.data.songs[songIndex] = newQueryRes.data;
} }
} }
console.log("更新表格数据完成") console.log("更新表格数据完成");
} else { } else {
this.message.$error(newQueryRes.message); this.message.$error(newQueryRes.message);
} }

@ -21,7 +21,11 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-input v-model="queryForm.data.creatorId" placeholder="输入发布人名称" size="medium"></el-input> <el-input
v-model="queryForm.data.creatorId"
placeholder="输入发布人名称"
size="medium"
></el-input>
<!-- <el-select <!-- <el-select
placeholder="输入发布人名称" placeholder="输入发布人名称"
size="medium" size="medium"
@ -265,7 +269,7 @@
:before-close="handleUploadDialogBeforeClose" :before-close="handleUploadDialogBeforeClose"
> >
<el-upload <el-upload
action="/luoo-music/cms/song/batch" :action="`${uploadBase}/luoo-music/cms/song/batch`"
:on-preview="handlePreview" :on-preview="handlePreview"
:on-remove="handleRemove" :on-remove="handleRemove"
:before-remove="beforeRemove" :before-remove="beforeRemove"
@ -302,6 +306,7 @@ export default {
name: "Song", name: "Song",
data() { data() {
return { return {
uploadBase: process.env.BASE_API,
// //
queryForm: { queryForm: {
remoteData: { remoteData: {

@ -45,7 +45,7 @@
:src="data.image" :src="data.image"
/> />
<el-upload <el-upload
action="/luoo-music/cms/journal/upload/image" :action="`${uploadBase}/luoo-music/cms/journal/upload/image`"
:on-preview="handlePreview" :on-preview="handlePreview"
:on-remove="handleRemove" :on-remove="handleRemove"
:before-remove="beforeRemove" :before-remove="beforeRemove"
@ -99,6 +99,7 @@ export default {
}, },
data() { data() {
return { return {
uploadBase: process.env.BASE_API,
selectTag: [], selectTag: [],
rules: {}, rules: {},
coverUploadFileList: [] coverUploadFileList: []
@ -118,17 +119,17 @@ export default {
for (let j in this.remoteTagList) { for (let j in this.remoteTagList) {
let jId = this.remoteTagList[j].value; let jId = this.remoteTagList[j].value;
if(tag === jId){ if (tag === jId) {
this.selectTag.push([jId]) this.selectTag.push([jId]);
} }
for (let k in this.remoteTagList[j].children) { for (let k in this.remoteTagList[j].children) {
let kId = this.remoteTagList[j].children[k].value; let kId = this.remoteTagList[j].children[k].value;
if (tag === this.remoteTagList[j].children[k].value) { if (tag === this.remoteTagList[j].children[k].value) {
this.selectTag.push([jId, kId]); this.selectTag.push([jId, kId]);
}else{ } else {
console.log(tag) console.log(tag);
console.log(this.remoteTagList[j].children[k].value) console.log(this.remoteTagList[j].children[k].value);
console.log("-----") console.log("-----");
} }
} }
} }
@ -162,12 +163,12 @@ export default {
beforeRemove(file, fileList) { beforeRemove(file, fileList) {
return this.$confirm(`确定移除 ${file.name}`); return this.$confirm(`确定移除 ${file.name}`);
}, },
handleUploadImgSuccess(response, file, fileList){ handleUploadImgSuccess(response, file, fileList) {
if(response.status === 'success'){ if (response.status === "success") {
this.$message.success("上传成功") this.$message.success("上传成功");
this.data.image = response.response.data['fullUrl'] this.data.image = response.response.data["fullUrl"];
}
} }
},
} }
}; };
</script> </script>

Loading…
Cancel
Save