update:
1. update release-version
This commit is contained in:
@@ -241,10 +241,15 @@ export default {
|
|||||||
},
|
},
|
||||||
handleUrl(row) {
|
handleUrl(row) {
|
||||||
let defaultUrl = '';
|
let defaultUrl = '';
|
||||||
if (this.appType === 1 && row.channelCode === 'pgyer'){
|
if (this.appType === 1) {
|
||||||
|
if (row.channelCode === 'pgyer') {
|
||||||
defaultUrl = 'https://www.pgyer.com/yichayilu';
|
defaultUrl = 'https://www.pgyer.com/yichayilu';
|
||||||
}
|
}
|
||||||
if (this.appType === 2 && row.channelCode === 'pgyer'){
|
if (row.channelCode === 'xiaomi') {
|
||||||
|
defaultUrl = 'mimarket://details?id=com.ycyl.tea_road';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (this.appType === 2 && row.channelCode === 'pgyer') {
|
||||||
defaultUrl = 'https://www.pgyer.com/xichashanghui';
|
defaultUrl = 'https://www.pgyer.com/xichashanghui';
|
||||||
}
|
}
|
||||||
this.$prompt('请输入更新链接', '更新链接', {
|
this.$prompt('请输入更新链接', '更新链接', {
|
||||||
@@ -252,17 +257,17 @@ export default {
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
inputPlaceholder: '请输入更新链接',
|
inputPlaceholder: '请输入更新链接',
|
||||||
inputValue: defaultUrl,
|
inputValue: defaultUrl,
|
||||||
}).then(({ value }) => {
|
}).then(({value}) => {
|
||||||
if (value.trim() === '') {
|
if (value.trim() === '') {
|
||||||
this.$message.warning('更新链接不能为空');
|
this.$message.warning('更新链接不能为空');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fillUrl(row.id, value)
|
fillUrl(row.id, value)
|
||||||
.then(()=>{
|
.then(() => {
|
||||||
this.$message.success('上架成功');
|
this.$message.success('上架成功');
|
||||||
this.onLoadDetailList();
|
this.onLoadDetailList();
|
||||||
})
|
})
|
||||||
.catch((error)=>{
|
.catch((error) => {
|
||||||
console.error('fillUrl failed:', error);
|
console.error('fillUrl failed:', error);
|
||||||
this.$message.error('上架失败,请重试');
|
this.$message.error('上架失败,请重试');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user