Browse Source

修改皮肤更换请求接口,优化图片地址问题

master
wen 2 years ago
parent
commit
2fccda499f
  1. 2
      .env.production
  2. 20
      src/views/systme/switchtheme.vue

2
.env.production

@ -5,4 +5,4 @@ ENV = 'production'
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = '/prod-api'
# base imgurl # base imgurl
VUE_APP_IMG_URL = 'https://dev.filesite.io' VUE_APP_IMG_URL = '/'

20
src/views/systme/switchtheme.vue

@ -12,8 +12,8 @@
</el-option> </el-option>
</el-select> </el-select>
<div class="Submit1"> <div class="Submit1">
<!-- <el-button @click="skinSubmit" :loading="skinloading" type="primary">提交</el-button> --> <el-button @click="skinSubmit" :loading="skinloading" type="primary">提交</el-button>
<a v-if="skinvalue" class="to_front_web" target="_blank" :href="skinLink"><el-button type="success" round>查看{{skinlabel}}站点</el-button></a> <a v-if="skinAsk" class="to_front_web" target="_blank" :href="skinLink"><el-button type="success" round>查看{{skinlabel}}站点</el-button></a>
</div> </div>
</div> </div>
@ -33,23 +33,24 @@ export default {
options: [{ options: [{
value: 'manual', value: 'manual',
label: '文档站', label: '文档站',
link:'https://Filesite.io' link:'/'
}, { }, {
value: 'webdirectory', value: 'webdirectory',
label: '导航站', label: '导航站',
link:'https://WebDirectory.filesite.io' link:'/'
}, { }, {
value: 'googleimage', value: 'googleimage',
label: '图片站', label: '图片站',
link:'https://googleimage.filesite.io/' link:'/'
}, { }, {
value: 'videoblog', value: 'videoblog',
label: '视频站', label: '视频站',
link:'https://Duan.Filesite.io' link:'/'
}], }],
skinvalue: '', skinvalue: '',
skinlabel:'', skinlabel:'',
skinLink: '', skinLink: '',
skinAsk: false,
skinloading:false, skinloading:false,
skinForm:{ skinForm:{
@ -57,6 +58,12 @@ export default {
} }
} }
}, },
//
created() {
//this.skinSubmit();
//console.log(this.imgurl);
},
methods: { methods: {
skinSubmit() { skinSubmit() {
let thiss = this; let thiss = this;
@ -69,6 +76,7 @@ export default {
thiss.$message({showClose: true,message: datamain.msg,type: 'success'}); thiss.$message({showClose: true,message: datamain.msg,type: 'success'});
//this.subloading = false; //this.subloading = false;
this.skinAsk = true;
} else { } else {
thiss.$message({showClose: true,message: datamain.err,type: 'error'}); thiss.$message({showClose: true,message: datamain.err,type: 'error'});
} }

Loading…
Cancel
Save