Browse Source

文章列表修改

renjiaojiao 2 years ago
parent
commit
7937795818

+ 1 - 1
core/src/qfw/manage/menu.go

@@ -50,7 +50,7 @@ func (m *menu) MenuDelete() error {
 		res["success"] = mongodb.DelById("jy_topMenu", _id)
 		res["success"] = mongodb.DelById("jy_topMenu", _id)
 	}
 	}
 	//清首页缓存
 	//清首页缓存
-	redis.Del("other", "/")
+	redis.Del("other", menuCahceKey)
 	m.ServeJson(&res)
 	m.ServeJson(&res)
 	return nil
 	return nil
 }
 }

+ 4 - 0
core/src/web/templates/manage/course/onLineIndex.html

@@ -278,6 +278,10 @@
         $(".addCourse").on("click", function () {
         $(".addCourse").on("click", function () {
             window.location.href = "/manage/course/OnLineDetail/add/new"
             window.location.href = "/manage/course/OnLineDetail/add/new"
         })
         })
+
+        setTimeout(function() {
+            $('#select2').val(3)
+        }, 100)
     });
     });
 
 
     //点击跳转新页面
     //点击跳转新页面