fix: support App builder type in deleteWebTree + correct delete prompt
- ChannelProjectService: normalizeBuilderType accepts 'app' (Channel::BUILDER_APP) - deleteWebTree: app type deletes public/channel/<id>/ (IPA output) - Blade: correct pathHint for app builder type
This commit is contained in:
@@ -454,9 +454,14 @@ layui.use(['table', 'form', 'layer'], function () {
|
||||
if (obj.event === 'edit') openForm('编辑渠道链接', obj.data, false);
|
||||
if (obj.event === 'links') openLinks(obj.data);
|
||||
if (obj.event === 'del') {
|
||||
var pathHint = obj.data.builder_type === 'new'
|
||||
? ('数据库记录与 channel/' + obj.data.channel_id + '/')
|
||||
: ('数据库记录与 web/' + obj.data.channel_id + ' 资源');
|
||||
var pathHint;
|
||||
if (obj.data.builder_type === 'app') {
|
||||
pathHint = '数据库记录与生成的 IPA 文件';
|
||||
} else if (obj.data.builder_type === 'new') {
|
||||
pathHint = '数据库记录与 channel/' + obj.data.channel_id + '/';
|
||||
} else {
|
||||
pathHint = '数据库记录与 web/' + obj.data.channel_id + ' 资源';
|
||||
}
|
||||
layer.confirm('删除后将移除 ' + pathHint + ',确认?', function (idx) {
|
||||
$.ajax({
|
||||
url: @json(url('/admin/channels')) + '/' + obj.data.id,
|
||||
|
||||
Reference in New Issue
Block a user