mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-25 00:27:43 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f80d50981c | ||
|
|
dfb7367100 | ||
|
|
d764cb48e3 | ||
|
|
f01d39c1c9 | ||
|
|
59805273bf |
No files matched your search
+11
-4
@@ -18,6 +18,10 @@
|
|||||||
.el-menu-demo {
|
.el-menu-demo {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background: #f5f5f5;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -62,7 +66,7 @@
|
|||||||
style="text-align: center"
|
style="text-align: center"
|
||||||
layout="prev, pager, next, sizes"
|
layout="prev, pager, next, sizes"
|
||||||
:page-size="paginate.page_size"
|
:page-size="paginate.page_size"
|
||||||
@current-change="loginAdmin"
|
@current-change="updatePage"
|
||||||
@size-change="updateSize"
|
@size-change="updateSize"
|
||||||
:total="paginate.total"
|
:total="paginate.total"
|
||||||
>
|
>
|
||||||
@@ -198,6 +202,10 @@
|
|||||||
this.paginate.size = value;
|
this.paginate.size = value;
|
||||||
this.loginAdmin();
|
this.loginAdmin();
|
||||||
},
|
},
|
||||||
|
updatePage: function (value) {
|
||||||
|
this.paginate.page = value;
|
||||||
|
this.loginAdmin();
|
||||||
|
},
|
||||||
deleteBanner: function (index) {
|
deleteBanner: function (index) {
|
||||||
this.config.banners.splice(index, 1);
|
this.config.banners.splice(index, 1);
|
||||||
},
|
},
|
||||||
@@ -221,8 +229,7 @@
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
loginAdmin: function (current_page = 1) {
|
loginAdmin: function () {
|
||||||
this.paginate.page = current_page;
|
|
||||||
axios.post('', this.paginate, {
|
axios.post('', this.paginate, {
|
||||||
'headers': {
|
'headers': {
|
||||||
'pwd': this.pwd,
|
'pwd': this.pwd,
|
||||||
@@ -253,4 +260,4 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
+10
-2
@@ -12,7 +12,15 @@
|
|||||||
<meta name="keywords" content="{{keywords}}"/>
|
<meta name="keywords" content="{{keywords}}"/>
|
||||||
<meta name="generator" content="FileCodeBox"/>
|
<meta name="generator" content="FileCodeBox"/>
|
||||||
<meta name="template" content="Lan-V1.5.8"/>
|
<meta name="template" content="Lan-V1.5.8"/>
|
||||||
|
<meta name="description" content="{{description}}"/>
|
||||||
|
<meta name="keywords" content="{{keywords}}"/>
|
||||||
|
<meta name="generator" content="FileCodeBox"/>
|
||||||
|
<meta name="template" content="Lan-V1.5.8"/>
|
||||||
<style>
|
<style>
|
||||||
|
body {
|
||||||
|
background: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
.qu .el-button {
|
.qu .el-button {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
@@ -313,7 +321,7 @@
|
|||||||
},
|
},
|
||||||
copyText: function (value, style = 1) {
|
copyText: function (value, style = 1) {
|
||||||
if (style === 0) {
|
if (style === 0) {
|
||||||
value = '我在分享了给你文件,取件码:${value},${window.location.href}?code=${value}';
|
value = `我在分享了给你文件,取件码:${value},${window.location.href}?code=${value}`;
|
||||||
}
|
}
|
||||||
const input = document.createElement('input');
|
const input = document.createElement('input');
|
||||||
input.setAttribute('readonly', 'readonly');
|
input.setAttribute('readonly', 'readonly');
|
||||||
@@ -395,4 +403,4 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
Reference in new issue
Block a user