Browse Source

rename bug1

pull/2/head
gongzijian 6 years ago
parent
commit
4292229bd3
  1. 2
      escheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/_source/rename.vue
  2. 2
      escheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/_source/rename.vue

2
escheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/_source/rename.vue

@ -51,7 +51,7 @@
this._verification().then(res => { this._verification().then(res => {
if (this.name === this.item.alias) { if (this.name === this.item.alias) {
return new Promise((resolve,reject) => { return new Promise((resolve,reject) => {
resolve() this.desc === this.item.desc ? reject({msg:'内容未修改'}) : resolve()
}) })
}else{ }else{
return this.store.dispatch('resource/resourceVerifyName', { return this.store.dispatch('resource/resourceVerifyName', {

2
escheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/_source/rename.vue

@ -51,7 +51,7 @@
this._verification().then(res => { this._verification().then(res => {
if (this.name === this.item.alias) { if (this.name === this.item.alias) {
return new Promise((resolve,reject) => { return new Promise((resolve,reject) => {
resolve() this.desc === this.item.desc ? reject({msg:'内容未修改'}) : resolve()
}) })
}else{ }else{
return this.store.dispatch('resource/resourceVerifyName', { return this.store.dispatch('resource/resourceVerifyName', {

Loading…
Cancel
Save