Browse Source

增加模型公开及私有

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.12.1^2
zouap 3 years ago
parent
commit
c311bad561
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-1.vue

+ 1
- 0
web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-1.vue View File

@@ -157,6 +157,7 @@ export default {
const hasEndSpace = this.state.label[this.state.label.length - 1] == ' ';
const list = this.state.label.trim().split(' ').filter(label => label != '');
this.state.label = list.slice(0, MAX_LABEL_COUNT).join(' ') + (hasEndSpace && list.length < MAX_LABEL_COUNT ? ' ' : '');
this.state.isPrivate = false;
},
submit() {
if (!this.checkName()) {


Loading…
Cancel
Save