From ce1cb450446d015c5af171d413d2948db10c70eb Mon Sep 17 00:00:00 2001 From: zouap Date: Fri, 2 Dec 2022 15:13:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=AC=E5=BC=80=E7=A7=81?= =?UTF-8?q?=E6=9C=89=E4=B8=A4=E4=B8=AA=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- .../repo/modelmanage/create_local_1.tmpl | 1 + templates/repo/modelmanage/create_online.tmpl | 30 ++++++++++--------- .../local/modelmanage-local-create-1.vue | 19 +++++++----- 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/templates/repo/modelmanage/create_local_1.tmpl b/templates/repo/modelmanage/create_local_1.tmpl index 965221335..ed47a907e 100644 --- a/templates/repo/modelmanage/create_local_1.tmpl +++ b/templates/repo/modelmanage/create_local_1.tmpl @@ -2,6 +2,7 @@
{{template "repo/header" .}} +
diff --git a/templates/repo/modelmanage/create_online.tmpl b/templates/repo/modelmanage/create_online.tmpl index 968f82fc3..78e51450c 100644 --- a/templates/repo/modelmanage/create_online.tmpl +++ b/templates/repo/modelmanage/create_online.tmpl @@ -135,23 +135,25 @@
-
-
- -
-
-
- - + {{if eq $.Repository.IsPrivate false}} +
+
+
-
-
-
- - +
+
+ + +
+
+
+
+ + +
-
+ {{end}}
diff --git a/web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-1.vue b/web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-1.vue index eded627ca..67d0e6349 100644 --- a/web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-1.vue +++ b/web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-1.vue @@ -86,7 +86,7 @@
-
+
@@ -139,7 +139,7 @@ import { MODEL_ENGINES } from '~/const' const REPO_NAME = location.pathname.split('/')[2]; const MAX_LABEL_COUNT = 5; - +const REPOISPRIVATE = window.REPO_IS_PRIVATE; export default { data() { return { @@ -157,6 +157,7 @@ export default { nameErr: false, isShowVersion: false, engineList: MODEL_ENGINES, + repoIsPrivate: REPOISPRIVATE }; }, components: {}, @@ -180,11 +181,15 @@ export default { return; } var radio = document.getElementsByName("isPrivate"); - for (var i=0; i