All checks were successful
continuous-integration/drone/push Build is passing
- 解压官方默认主题 default_yfMBA.tar.gz 到 clientarea/hgcloud/ - .gitignore 排除压缩包和临时解压目录 - drone 新增步骤: 同步 hgcloud 到 /clientarea/template/pc/
53 lines
1.3 KiB
JavaScript
53 lines
1.3 KiB
JavaScript
(function (window, undefined) {
|
|
var old_onload = window.onload;
|
|
window.onload = function () {
|
|
const template = document.getElementsByClassName("template")[0];
|
|
Vue.prototype.lang = window.lang;
|
|
new Vue({
|
|
components: {
|
|
asideMenu,
|
|
topMenu,
|
|
},
|
|
created() {
|
|
this.getCommonData();
|
|
},
|
|
mounted() {},
|
|
updated() {},
|
|
destroyed() {},
|
|
data() {
|
|
return {
|
|
commonData: {},
|
|
};
|
|
},
|
|
filters: {
|
|
formateTime(time) {
|
|
if (time && time !== 0) {
|
|
return formateDate(time * 1000);
|
|
} else {
|
|
return "--";
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
goBack() {
|
|
history.go(-1);
|
|
},
|
|
// 获取通用配置
|
|
getCommonData() {
|
|
getCommon().then((res) => {
|
|
if (res.data.status === 200) {
|
|
this.commonData = res.data.data;
|
|
localStorage.setItem(
|
|
"common_set_before",
|
|
JSON.stringify(res.data.data)
|
|
);
|
|
document.title = this.commonData.website_name + "-页面丢失";
|
|
}
|
|
});
|
|
},
|
|
},
|
|
}).$mount(template);
|
|
typeof old_onload == "function" && old_onload();
|
|
};
|
|
})(window);
|