quick-admin-vue3-core
Version:
以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板
43 lines (42 loc) • 1.61 kB
JavaScript
import { defineComponent as _, ref as u, resolveComponent as n, createElementBlock as d, openBlock as v, createElementVNode as w, createVNode as r, toDisplayString as i, unref as t, withCtx as x, createTextVNode as y } from "vue";
import { P as g } from "./platform-DsTwHxm6.js";
import { u as h } from "./vue-router-CAs1aAcA.js";
import { H as k } from "./index-D-KS7NhM.js";
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
const C = { class: "home f-c-c-c" }, E = { class: "welcome" }, b = /* @__PURE__ */ _({
name: "HomeWelcome",
__name: "welcome",
setup(H) {
const c = h(), l = g();
function m() {
const o = (/* @__PURE__ */ new Date()).getHours();
let e = "";
return o < 2 ? e = "凌晨" : o < 8 ? e = "清晨" : o < 11 ? e = "上午" : o < 13 ? e = "中午" : o < 18 ? e = "下午" : o < 20 ? e = "傍晚" : o < 23 ? e = "晚上" : e = "深夜", e;
}
const a = u(m());
return (o, e) => {
var s;
const f = n("BaseEmpty"), p = n("el-button");
return v(), d("div", C, [
w("div", E, i(a.value) + "好," + i((s = t(l)) == null ? void 0 : s._title), 1),
r(f, {
description: " ",
size: 200
}),
r(p, {
icon: t(k),
type: "primary",
onClick: e[0] || (e[0] = (I) => t(c).push("/workbench"))
}, {
default: x(() => e[1] || (e[1] = [
y("前往工作台")
])),
_: 1
}, 8, ["icon"])
]);
};
}
}), T = /* @__PURE__ */ B(b, [["__scopeId", "data-v-16433cd6"]]);
export {
T as default
};