import { computed as l, openBlock as d, createElementBlock as p, createElementVNode as s, toDisplayString as _ } from "vue"; import { useRoute as u, useRouter as m } from "vue-router"; import { n as g } from "./index2.js"; const h = { class: "s-500" }, v = { class: "s-500__main" }, w = { class: "s-500__title" }, f = { class: "s-500__desc" }, b = { class: "s-500__path" }, k = { class: "s-500__path-label" }, y = { class: "s-500__path-value" }, A = { class: "s-500__actions" }, $ = /* @__PURE__ */ Object.assign({ name: "AUth500" }, { __name: "500", setup(P) { window.useI18n && window.useI18n("pages-components"); const n = u(), e = m(), c = l(() => { const o = n.query.from; return String(Array.isArray(o) ? o[0] : o || n.fullPath); }), i = l(() => n.query.from ? "出错地址" : "当前地址"), a = () => { var o, t; e.replace(((t = (o = window.$utils) == null ? void 0 : o.env) == null ? void 0 : t.VITE_APP_DEFAULT_PATH) || "/workplace/index"); }, r = () => { window.history.length > 1 ? e.back() : a(); }; return (o, t) => (d(), p("div", h, [ t[1] || (t[1] = s("div", { class: "s-500__deco" }, [ s("div", { class: "s-500__glow s-500__glow--a" }), s("div", { class: "s-500__glow s-500__glow--b" }), s("div", { class: "s-500__grid" }) ], -1)), s("main", v, [ t[0] || (t[0] = s("div", { class: "s-500__visual" }, [ s("span", { class: "s-500__ring" }), s("span", { class: "s-500__ring s-500__ring--inner" }), s("span", { class: "s-500__code" }, "500") ], -1)), s("h1", w, _(o.$l("接口出错了")), 1), s("p", f, _(o.$l("您当前访问的接口出错了,请稍后再试。")), 1), s("div", b, [ s("span", k, _(o.$l(i.value)), 1), s("code", y, _(c.value), 1) ]), s("div", A, [ s("button", { class: "s-500__btn s-500__btn--primary", onClick: a }, _(o.$l("返回首页")), 1), s("button", { class: "s-500__btn", onClick: r }, _(o.$l("返回上一页")), 1) ]) ]) ])); } }), T = /* @__PURE__ */ g($, [["__scopeId", "data-v-d6a3c34d"]]); export { T as default };