🎨 Replace text preview loading effect

This commit is contained in:
Aicirou 2020-08-21 22:29:52 +08:00
parent 14d6e2a315
commit 25abb9d605

View File

@ -70,7 +70,10 @@ export default {
methods: { methods: {
render() { render() {
let path = this.url; let path = this.url;
this.content = this.$t("page.text.loading"); this.content = `<center>
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
<span class="sr-only">Loading...</span>
</center>`;
get_file({ path: path, file: {} }, (data) => { get_file({ path: path, file: {} }, (data) => {
this.content = data; this.content = data;
}); });