1. update release-version
This commit is contained in:
2026-04-17 16:51:17 +08:00
parent 3cc29ffce4
commit f91a7eba61

View File

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