amis-saas-6069 [Improvement.] 测试【编辑器「剪切配置」】剪切配置后ui显示不正确

Change-Id: I3eef34a4a75a768b99242c2d3baad0c3bf0bed9f
This commit is contained in:
jiatianqi 2022-11-01 11:36:44 +08:00
parent 22b599e3b2
commit a5427be09d

View File

@ -1210,10 +1210,10 @@ export class EditorManager {
*
* @param id
*/
copy(id: string) {
copy(id: string, toastText: string = '已复制') {
const json = this.store.getValueOf(id);
this.clipboardData = stringify(json);
toast.info('配置项已复制');
toast.info('配置项' + toastText);
}
/**
@ -1221,7 +1221,7 @@ export class EditorManager {
* @param id
*/
cut(id: string) {
this.copy(id);
this.copy(id, '已剪切');
this.del(id);
}