feat: チャンネルの作成・更新時にapiWithDialogを使うように (#12142)
* feat: チャンネル作成、更新時にapiWithDialogを使うように * chore: 不要なsuccessの呼び出しを削除 * chore: 誤って削除した必要なコードを元通りに
This commit is contained in:
parent
9ec667a87c
commit
5887c5da6c
2 changed files with 3 additions and 5 deletions
|
@ -154,12 +154,9 @@ function save() {
|
|||
|
||||
if (props.channelId) {
|
||||
params.channelId = props.channelId;
|
||||
os.api('channels/update', params).then(() => {
|
||||
os.success();
|
||||
});
|
||||
os.apiWithDialog('channels/update', params);
|
||||
} else {
|
||||
os.api('channels/create', params).then(created => {
|
||||
os.success();
|
||||
os.apiWithDialog('channels/create', params).then(created => {
|
||||
router.push(`/channels/${created.id}`);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue