- {{.Repo.OwnerName}} / {{.Repo.Alias}}
+ {{.Repo.OwnerName}} / {{.Repo.Alias}}{{if .Recommend}}
{{end}}
+
{{if $.IsSigned}}
diff --git a/web_src/js/components/images/adminImages.vue b/web_src/js/components/images/adminImages.vue
index 317c1f545..be964a55a 100644
--- a/web_src/js/components/images/adminImages.vue
+++ b/web_src/js/components/images/adminImages.vue
@@ -1,6 +1,7 @@
-
diff --git a/web_src/js/features/images.js b/web_src/js/features/images.js
index dd27aaf6c..a6631f69c 100644
--- a/web_src/js/features/images.js
+++ b/web_src/js/features/images.js
@@ -86,7 +86,7 @@ export default async function initImage(){
success:function(res){
console.log(res)
if(res.Code===1){
- $('.ui.info.message').text(res.Message).show().delay(1500).fadeOut();
+ $('.ui.negative.message').text(res.Message).show().delay(2500).fadeOut();
}else if(res.Code==0){
if(location.href.indexOf('imageAdmin')!==-1){
location.href = `${window.config.AppSubUrl}/admin/images`
@@ -135,7 +135,6 @@ export default async function initImage(){
postData.place = $("input[name='place']").val()
}
let formData = $params(postData)
- console.log(formData)
if($("input[name='edit']").val()=="edit"){
postImage(formData)
}
@@ -163,7 +162,7 @@ export default async function initImage(){
}
})
}
-
+ return false
})
$('#cancel_submit_image').click(()=>{
if(link.includes('cloudbrain')){
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 6fdd68d8d..b17a68b86 100755
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -3702,6 +3702,32 @@ function initVueEditAbout() {
}
function initVueDataset() {
+ $('.set_dataset').on('click', function(){
+ const $this = $(this);
+ let link = $this.data('url')
+ $.ajax({
+ url:link,
+ type:'PUT',
+ success:function(res){
+ console.log(res)
+ if(res.Code==0){
+ window.location.href = '/admin/datasets'
+ }else{
+ $('.ui.negative.message').text(res.Message).show().delay(1500).fadeOut();
+ }
+ },
+ error: function(xhr){
+ // 隐藏 loading
+ // 只有请求不正常(状态码不为200)才会执行
+ $('.ui.negative.message').html(xhr.responseText).show().delay(1500).fadeOut();
+ console.log(xhr)
+ },
+ complete:function(xhr){
+ // $("#mask").css({"display":"none","z-index":"1"})
+ }
+ })
+
+ });
const el = document.getElementById('dataset-base');
if (!el) {
return;
+
+
-
-
- 仅显示平台推荐
-
-
-
+
+
-
+
+
@@ -11,12 +12,10 @@
+ 仅显示平台推荐
+
{{dropdownPrivate}}
@@ -25,10 +24,12 @@
公开
私有
-
-
-
-
+
+
+
+ 创建云脑镜像
+
+