pycharm下格式化模板文件,统一风格
This commit is contained in:
@@ -71,43 +71,42 @@
|
||||
<!-- 依 赖 脚 本 -->
|
||||
{% include 'admin/common/footer.html' %}
|
||||
<script>
|
||||
layui.use(['admin', 'jquery', 'layer', 'popup'], function () {
|
||||
let admin = layui.admin;
|
||||
let $ = layui.jquery;
|
||||
let layer = layui.layer;
|
||||
let popup = layui.popup;
|
||||
layui.use(['admin', 'jquery', 'layer', 'popup'], function () {
|
||||
let admin = layui.admin
|
||||
let $ = layui.jquery
|
||||
let layer = layui.layer
|
||||
let popup = layui.popup
|
||||
|
||||
// 框架初始化时会读取 根目录下 pear.configs.yml 文件作为初始化配置
|
||||
// 你可以通过 admin.setConfigPath 方法修改配置文件位置
|
||||
// 你可以通过 admin.setConfigType 方法修改配置文件类型
|
||||
admin.setConfigType("json");
|
||||
admin.setConfigPath("{{ url_for('adminIndex.configs') }}");
|
||||
// 框架初始化时会读取 根目录下 pear.configs.yml 文件作为初始化配置
|
||||
// 你可以通过 admin.setConfigPath 方法修改配置文件位置
|
||||
// 你可以通过 admin.setConfigType 方法修改配置文件类型
|
||||
admin.setConfigType('json')
|
||||
admin.setConfigPath("{{ url_for('adminIndex.configs') }}")
|
||||
|
||||
admin.render();
|
||||
admin.render()
|
||||
|
||||
|
||||
// 注销实现
|
||||
admin.logout(function () {
|
||||
let loading = layer.load();
|
||||
$.ajax({
|
||||
url: '/admin/logout',
|
||||
dataType: 'json',
|
||||
type: 'post',
|
||||
success: function (result) {
|
||||
layer.close(loading);
|
||||
if (result.success) {
|
||||
popup.success(result.msg, function () {
|
||||
location.href = "/admin";
|
||||
});
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// 注销实现
|
||||
admin.logout(function () {
|
||||
let loading = layer.load()
|
||||
$.ajax({
|
||||
url: '/admin/logout',
|
||||
dataType: 'json',
|
||||
type: 'post',
|
||||
success: function (result) {
|
||||
layer.close(loading)
|
||||
if (result.success) {
|
||||
popup.success(result.msg, function () {
|
||||
location.href = '/admin'
|
||||
})
|
||||
});
|
||||
|
||||
// 初始化消息事件
|
||||
admin.message();
|
||||
return true
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
// 初始化消息事件
|
||||
admin.message()
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user