update files

This commit is contained in:
nuintun 2016-01-14 17:03:39 +08:00
parent 99e0657355
commit 46e9ba52d7

View File

@ -49,7 +49,7 @@ module.exports = Vue.component('project-base', {
this.path = this.path.trim();
if (this.name) {
if (this.originName && this.originName !== this.name && this.unique[this.name]) {
if ((!this.originName || (this.originName && this.originName !== this.name)) && this.unique[this.name]) {
this.nameError = '项目已存在';
} else {
this.nameError = '';