create-meadminjs 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +13 -3
- package/package.json +1 -1
- package/template/meadmin/meadmin.sql +24 -10
- package/template/meadmin/packageTemplate.json +2 -2
- package/template/meadmin/view/admin/dist/.gitkeep +0 -0
- package/template/meadmin/view/index/dist/.gitkeep +0 -0
- package/template/meadmin/view/index/types/auto-imports.d.ts +1 -0
- package/template/meadmin/view/index/dist/assets/404-B7Oawy5R.js +0 -1
- package/template/meadmin/view/index/dist/assets/404-B7Oawy5R.js.br +0 -0
- package/template/meadmin/view/index/dist/assets/404-B7Oawy5R.js.gz +0 -0
- package/template/meadmin/view/index/dist/assets/404-CozhfxlA.css +0 -1
- package/template/meadmin/view/index/dist/assets/404-CozhfxlA.css.br +0 -0
- package/template/meadmin/view/index/dist/assets/404-CozhfxlA.css.gz +0 -0
- package/template/meadmin/view/index/dist/assets/404-DSkhiBHr.svg +0 -339
- package/template/meadmin/view/index/dist/assets/404-DSkhiBHr.svg.br +0 -0
- package/template/meadmin/view/index/dist/assets/404-DSkhiBHr.svg.gz +0 -0
- package/template/meadmin/view/index/dist/assets/avatar-CPvykNE-.jpg +0 -0
- package/template/meadmin/view/index/dist/assets/core-CY5zzX7u.css +0 -1
- package/template/meadmin/view/index/dist/assets/core-CY5zzX7u.css.br +0 -0
- package/template/meadmin/view/index/dist/assets/core-CY5zzX7u.css.gz +0 -0
- package/template/meadmin/view/index/dist/assets/core-DYgtGCsy.js +0 -36
- package/template/meadmin/view/index/dist/assets/core-DYgtGCsy.js.br +0 -0
- package/template/meadmin/view/index/dist/assets/core-DYgtGCsy.js.gz +0 -0
- package/template/meadmin/view/index/dist/assets/iconfont.1764811574696-C-d53NQO.woff +0 -0
- package/template/meadmin/view/index/dist/assets/iconfont.1764811574696-C396vfjy.ttf +0 -0
- package/template/meadmin/view/index/dist/assets/iconfont.1764834414498-BllfKX1O.ttf +0 -0
- package/template/meadmin/view/index/dist/assets/iconfont.1764834414498-D9epzWxu.woff +0 -0
- package/template/meadmin/view/index/dist/assets/index-B3PE5HQn.css +0 -1
- package/template/meadmin/view/index/dist/assets/index-B3PE5HQn.css.br +0 -0
- package/template/meadmin/view/index/dist/assets/index-B3PE5HQn.css.gz +0 -0
- package/template/meadmin/view/index/dist/assets/index-B3e7_EsO.css +0 -1
- package/template/meadmin/view/index/dist/assets/index-B3e7_EsO.css.br +0 -0
- package/template/meadmin/view/index/dist/assets/index-B3e7_EsO.css.gz +0 -0
- package/template/meadmin/view/index/dist/assets/index-BzGDrXWK.js +0 -1
- package/template/meadmin/view/index/dist/assets/index-BzGDrXWK.js.br +0 -0
- package/template/meadmin/view/index/dist/assets/index-BzGDrXWK.js.gz +0 -0
- package/template/meadmin/view/index/dist/assets/index-D6Bdjbmj.css +0 -1
- package/template/meadmin/view/index/dist/assets/index-D6Bdjbmj.css.br +0 -0
- package/template/meadmin/view/index/dist/assets/index-D6Bdjbmj.css.gz +0 -0
- package/template/meadmin/view/index/dist/assets/index-Dk1Rpy73.js +0 -1
- package/template/meadmin/view/index/dist/assets/index-Dk1Rpy73.js.br +0 -2
- package/template/meadmin/view/index/dist/assets/index-Dk1Rpy73.js.gz +0 -0
- package/template/meadmin/view/index/dist/assets/index-Dt87n6GJ.css +0 -1
- package/template/meadmin/view/index/dist/assets/index-Dt87n6GJ.css.br +0 -0
- package/template/meadmin/view/index/dist/assets/index-Dt87n6GJ.css.gz +0 -0
- package/template/meadmin/view/index/dist/assets/index-DzU3RK7y.js +0 -1
- package/template/meadmin/view/index/dist/assets/index-DzU3RK7y.js.br +0 -0
- package/template/meadmin/view/index/dist/assets/index-DzU3RK7y.js.gz +0 -0
- package/template/meadmin/view/index/dist/assets/index-eAIKfPTe.js +0 -8
- package/template/meadmin/view/index/dist/assets/index-eAIKfPTe.js.br +0 -0
- package/template/meadmin/view/index/dist/assets/index-eAIKfPTe.js.gz +0 -0
- package/template/meadmin/view/index/dist/assets/meButton.vue_vue_type_script_setup_true_name_MeButton_lang-Chv--Mwp.js +0 -1
- package/template/meadmin/view/index/dist/assets/meButton.vue_vue_type_script_setup_true_name_MeButton_lang-Chv--Mwp.js.br +0 -0
- package/template/meadmin/view/index/dist/assets/meButton.vue_vue_type_script_setup_true_name_MeButton_lang-Chv--Mwp.js.gz +0 -0
- package/template/meadmin/view/index/dist/assets/meUpAvatar-CwQ1B8_T.js +0 -1
- package/template/meadmin/view/index/dist/assets/meUpAvatar-CwQ1B8_T.js.br +0 -0
- package/template/meadmin/view/index/dist/assets/meUpAvatar-CwQ1B8_T.js.gz +0 -0
- package/template/meadmin/view/index/dist/assets/meUpAvatar-VeMBR6Vn.css +0 -1
- package/template/meadmin/view/index/dist/assets/meUpAvatar-VeMBR6Vn.css.br +0 -0
- package/template/meadmin/view/index/dist/assets/meUpAvatar-VeMBR6Vn.css.gz +0 -0
- package/template/meadmin/view/index/dist/assets/promiseError-2WriTuHu.css +0 -1
- package/template/meadmin/view/index/dist/assets/promiseError-2WriTuHu.css.br +0 -0
- package/template/meadmin/view/index/dist/assets/promiseError-2WriTuHu.css.gz +0 -0
- package/template/meadmin/view/index/dist/assets/promiseError-DE4bj2f8.js +0 -1
- package/template/meadmin/view/index/dist/assets/promiseError-DE4bj2f8.js.br +0 -0
- package/template/meadmin/view/index/dist/assets/promiseError-DE4bj2f8.js.gz +0 -0
- package/template/meadmin/view/index/dist/assets/redirect-BvCSNyBL.js +0 -1
- package/template/meadmin/view/index/dist/assets/redirect-BvCSNyBL.js.br +0 -0
- package/template/meadmin/view/index/dist/assets/redirect-BvCSNyBL.js.gz +0 -0
- package/template/meadmin/view/index/dist/favicon.ico +0 -0
- package/template/meadmin/view/index/dist/index.html +0 -25
- package/template/meadmin/view/index/dist/index.html.br +0 -0
- package/template/meadmin/view/index/dist/index.html.gz +0 -0
- package/template/meadmin/view/index/dist/logo.png +0 -0
- package/template/meadmin/view/index/dist/logo.svg +0 -1
- package/template/meadmin/view/index/dist/logo.svg.br +0 -0
- package/template/meadmin/view/index/dist/logo.svg.gz +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/404-B9UJ1mUk.js +0 -71
- package/template/meadmin/view/index/dist/ssr/src/assets/404-B9UJ1mUk.js.br +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/404-B9UJ1mUk.js.gz +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/index-DLA-WCC9.js +0 -141
- package/template/meadmin/view/index/dist/ssr/src/assets/index-DLA-WCC9.js.br +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/index-DLA-WCC9.js.gz +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/index-Dp0aaFR-.js +0 -863
- package/template/meadmin/view/index/dist/ssr/src/assets/index-Dp0aaFR-.js.br +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/index-Dp0aaFR-.js.gz +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/index-jfc9wRUh.js +0 -712
- package/template/meadmin/view/index/dist/ssr/src/assets/index-jfc9wRUh.js.br +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/index-jfc9wRUh.js.gz +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/meButton-C6nJLVaV.js +0 -63
- package/template/meadmin/view/index/dist/ssr/src/assets/meButton-C6nJLVaV.js.br +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/meButton-C6nJLVaV.js.gz +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/meUpAvatar-BitBSZhv.js +0 -272
- package/template/meadmin/view/index/dist/ssr/src/assets/meUpAvatar-BitBSZhv.js.br +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/meUpAvatar-BitBSZhv.js.gz +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/promiseError-htSuzmaR.js +0 -106
- package/template/meadmin/view/index/dist/ssr/src/assets/promiseError-htSuzmaR.js.br +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/promiseError-htSuzmaR.js.gz +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/redirect-D73DvP_s.js +0 -65
- package/template/meadmin/view/index/dist/ssr/src/assets/redirect-D73DvP_s.js.br +0 -0
- package/template/meadmin/view/index/dist/ssr/src/assets/redirect-D73DvP_s.js.gz +0 -0
- package/template/meadmin/view/index/dist/ssr/src/entry-server.js +0 -1918
- package/template/meadmin/view/index/dist/ssr/src/entry-server.js.br +0 -0
- package/template/meadmin/view/index/dist/ssr/src/entry-server.js.gz +0 -0
- package/template/meadmin/view/index/dist/ssr-manifest.json +0 -16989
- package/template/meadmin/view/index/src/store/module.ts +0 -5
- package/template/meadmin/view/index/types/components.d.ts +0 -25
- package/template/meadmin/view/index/types/directives.d.ts +0 -7
- package/template/meadmin/view/index/types/meIconComponents.d.ts +0 -11
|
@@ -1,863 +0,0 @@
|
|
|
1
|
-
import { b as request, _ as __ssr_vue_processAssetPath, a as _export_sfc, u as useUserStore, P as PageEnum } from "../entry-server.js";
|
|
2
|
-
import { ElForm, ElFormItem, ElInput, ElMenu, ElMenuItem } from "element-plus/es";
|
|
3
|
-
import { defineComponent, reactive, ref, mergeProps, unref, withCtx, createVNode, createTextVNode, useSSRContext, withAsyncContext, resolveComponent } from "vue";
|
|
4
|
-
import { ssrRenderAttrs, ssrRenderComponent } from "vue/server-renderer";
|
|
5
|
-
import { _ as _sfc_main$3 } from "./meButton-C6nJLVaV.js";
|
|
6
|
-
import { _ as __unplugin_components_2 } from "./meUpAvatar-BitBSZhv.js";
|
|
7
|
-
import { useRouter } from "vue-router";
|
|
8
|
-
import "core-js/modules/es.array.push.js";
|
|
9
|
-
import "core-js/modules/es.iterator.constructor.js";
|
|
10
|
-
import "core-js/modules/es.iterator.for-each.js";
|
|
11
|
-
import "core-js/modules/es.iterator.reduce.js";
|
|
12
|
-
import "core-js/modules/es.set.difference.v2.js";
|
|
13
|
-
import "core-js/modules/es.set.intersection.v2.js";
|
|
14
|
-
import "core-js/modules/es.set.is-disjoint-from.v2.js";
|
|
15
|
-
import "core-js/modules/es.set.is-subset-of.v2.js";
|
|
16
|
-
import "core-js/modules/es.set.is-superset-of.v2.js";
|
|
17
|
-
import "core-js/modules/es.set.symmetric-difference.v2.js";
|
|
18
|
-
import "core-js/modules/es.set.union.v2.js";
|
|
19
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
|
20
|
-
import "node:path";
|
|
21
|
-
import "serialize-javascript";
|
|
22
|
-
import "element-plus";
|
|
23
|
-
import "nprogress";
|
|
24
|
-
import "@element-plus/icons-vue";
|
|
25
|
-
import "lodash-es";
|
|
26
|
-
import "path-browserify";
|
|
27
|
-
import "core-js/modules/es.string.replace.js";
|
|
28
|
-
import "pinia";
|
|
29
|
-
import "dayjs";
|
|
30
|
-
import "core-js/modules/es.error.cause.js";
|
|
31
|
-
import "@babel/runtime/helpers/esm/defineProperty";
|
|
32
|
-
import "core-js/modules/es.json.stringify.js";
|
|
33
|
-
import "axios";
|
|
34
|
-
import "qs";
|
|
35
|
-
import "vue-request";
|
|
36
|
-
import "core-js/modules/es.array.includes.js";
|
|
37
|
-
import "core-js/modules/es.iterator.some.js";
|
|
38
|
-
import "core-js/modules/es.object.has-own.js";
|
|
39
|
-
import "xe-utils";
|
|
40
|
-
import "js-cookie";
|
|
41
|
-
import "vxe-pc-ui";
|
|
42
|
-
import "vxe-table";
|
|
43
|
-
import "vxe-table-plugin-element";
|
|
44
|
-
import "spark-md5";
|
|
45
|
-
function userInfoApi(options) {
|
|
46
|
-
return request(() => ({
|
|
47
|
-
url: `user/info`,
|
|
48
|
-
method: "get"
|
|
49
|
-
}), options);
|
|
50
|
-
}
|
|
51
|
-
function updateUserApi(options) {
|
|
52
|
-
return request((data) => ({
|
|
53
|
-
url: `user/up`,
|
|
54
|
-
method: "post",
|
|
55
|
-
data
|
|
56
|
-
}), Object.assign({
|
|
57
|
-
success: true,
|
|
58
|
-
noLoading: true
|
|
59
|
-
}, options));
|
|
60
|
-
}
|
|
61
|
-
const __default__$2 = defineComponent({ "setup": true, "name": "EditPass" });
|
|
62
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
63
|
-
...__default__$2,
|
|
64
|
-
__name: "editPass",
|
|
65
|
-
__ssrInlineRender: true,
|
|
66
|
-
setup(__props) {
|
|
67
|
-
const editPassParams = reactive({
|
|
68
|
-
orgPassword: "",
|
|
69
|
-
password: "",
|
|
70
|
-
reqPassword: ""
|
|
71
|
-
});
|
|
72
|
-
const rules = {
|
|
73
|
-
orgPassword: [
|
|
74
|
-
{
|
|
75
|
-
required: true,
|
|
76
|
-
message: "请填写原始密码",
|
|
77
|
-
trigger: "blur"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
password: [
|
|
81
|
-
{
|
|
82
|
-
required: true,
|
|
83
|
-
message: "请填写密码",
|
|
84
|
-
trigger: "blur"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
min: 6,
|
|
88
|
-
max: 20,
|
|
89
|
-
message: "长度必须在 6 到 20个字符之间",
|
|
90
|
-
trigger: "blur"
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
reqPassword: [
|
|
94
|
-
{
|
|
95
|
-
required: true,
|
|
96
|
-
message: "确认密码",
|
|
97
|
-
trigger: "blur",
|
|
98
|
-
validator: (rule, value, callback) => {
|
|
99
|
-
if (!value) {
|
|
100
|
-
callback(new Error("请输入确认密码"));
|
|
101
|
-
} else if (value !== editPassParams.password) {
|
|
102
|
-
callback(new Error("两次密码不一致"));
|
|
103
|
-
} else {
|
|
104
|
-
callback();
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
};
|
|
110
|
-
const formRef = ref();
|
|
111
|
-
const submit = async () => {
|
|
112
|
-
formRef.value?.validate(async (valid, fields) => {
|
|
113
|
-
if (valid) {
|
|
114
|
-
await updateUserApi().runAsync(editPassParams);
|
|
115
|
-
} else {
|
|
116
|
-
console.log("提交错误", fields);
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
};
|
|
120
|
-
const resetForm = (formEl) => {
|
|
121
|
-
if (!formEl) return;
|
|
122
|
-
formEl.resetFields();
|
|
123
|
-
};
|
|
124
|
-
return (_ctx, _push, _parent, _attrs) => {
|
|
125
|
-
const _component_el_form = ElForm;
|
|
126
|
-
const _component_el_form_item = ElFormItem;
|
|
127
|
-
const _component_el_input = ElInput;
|
|
128
|
-
const _component_me_button = _sfc_main$3;
|
|
129
|
-
_push(`<div${ssrRenderAttrs(mergeProps({ class: "edit-pass" }, _attrs))} data-v-b028dd6a>`);
|
|
130
|
-
_push(ssrRenderComponent(_component_el_form, {
|
|
131
|
-
ref_key: "formRef",
|
|
132
|
-
ref: formRef,
|
|
133
|
-
size: "large",
|
|
134
|
-
"label-width": "auto",
|
|
135
|
-
rules,
|
|
136
|
-
model: unref(editPassParams),
|
|
137
|
-
onKeyup: submit
|
|
138
|
-
}, {
|
|
139
|
-
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
140
|
-
if (_push2) {
|
|
141
|
-
_push2(ssrRenderComponent(_component_el_form_item, {
|
|
142
|
-
prop: "orgPassword",
|
|
143
|
-
label: "原始密码"
|
|
144
|
-
}, {
|
|
145
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
146
|
-
if (_push3) {
|
|
147
|
-
_push3(ssrRenderComponent(_component_el_input, {
|
|
148
|
-
modelValue: unref(editPassParams).orgPassword,
|
|
149
|
-
"onUpdate:modelValue": ($event) => unref(editPassParams).orgPassword = $event,
|
|
150
|
-
type: "password",
|
|
151
|
-
placeholder: "原始密码",
|
|
152
|
-
clearable: "",
|
|
153
|
-
"show-password": ""
|
|
154
|
-
}, null, _parent3, _scopeId2));
|
|
155
|
-
} else {
|
|
156
|
-
return [
|
|
157
|
-
createVNode(_component_el_input, {
|
|
158
|
-
modelValue: unref(editPassParams).orgPassword,
|
|
159
|
-
"onUpdate:modelValue": ($event) => unref(editPassParams).orgPassword = $event,
|
|
160
|
-
type: "password",
|
|
161
|
-
placeholder: "原始密码",
|
|
162
|
-
clearable: "",
|
|
163
|
-
"show-password": ""
|
|
164
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
165
|
-
];
|
|
166
|
-
}
|
|
167
|
-
}),
|
|
168
|
-
_: 1
|
|
169
|
-
}, _parent2, _scopeId));
|
|
170
|
-
_push2(ssrRenderComponent(_component_el_form_item, {
|
|
171
|
-
prop: "password",
|
|
172
|
-
label: "新密码"
|
|
173
|
-
}, {
|
|
174
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
175
|
-
if (_push3) {
|
|
176
|
-
_push3(ssrRenderComponent(_component_el_input, {
|
|
177
|
-
modelValue: unref(editPassParams).password,
|
|
178
|
-
"onUpdate:modelValue": ($event) => unref(editPassParams).password = $event,
|
|
179
|
-
type: "password",
|
|
180
|
-
placeholder: "新密码",
|
|
181
|
-
clearable: "",
|
|
182
|
-
"show-password": ""
|
|
183
|
-
}, null, _parent3, _scopeId2));
|
|
184
|
-
} else {
|
|
185
|
-
return [
|
|
186
|
-
createVNode(_component_el_input, {
|
|
187
|
-
modelValue: unref(editPassParams).password,
|
|
188
|
-
"onUpdate:modelValue": ($event) => unref(editPassParams).password = $event,
|
|
189
|
-
type: "password",
|
|
190
|
-
placeholder: "新密码",
|
|
191
|
-
clearable: "",
|
|
192
|
-
"show-password": ""
|
|
193
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
194
|
-
];
|
|
195
|
-
}
|
|
196
|
-
}),
|
|
197
|
-
_: 1
|
|
198
|
-
}, _parent2, _scopeId));
|
|
199
|
-
_push2(ssrRenderComponent(_component_el_form_item, {
|
|
200
|
-
prop: "reqPassword",
|
|
201
|
-
label: "确认密码"
|
|
202
|
-
}, {
|
|
203
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
204
|
-
if (_push3) {
|
|
205
|
-
_push3(ssrRenderComponent(_component_el_input, {
|
|
206
|
-
modelValue: unref(editPassParams).reqPassword,
|
|
207
|
-
"onUpdate:modelValue": ($event) => unref(editPassParams).reqPassword = $event,
|
|
208
|
-
type: "password",
|
|
209
|
-
placeholder: "请重复输入新密码",
|
|
210
|
-
clearable: "",
|
|
211
|
-
"show-password": ""
|
|
212
|
-
}, null, _parent3, _scopeId2));
|
|
213
|
-
} else {
|
|
214
|
-
return [
|
|
215
|
-
createVNode(_component_el_input, {
|
|
216
|
-
modelValue: unref(editPassParams).reqPassword,
|
|
217
|
-
"onUpdate:modelValue": ($event) => unref(editPassParams).reqPassword = $event,
|
|
218
|
-
type: "password",
|
|
219
|
-
placeholder: "请重复输入新密码",
|
|
220
|
-
clearable: "",
|
|
221
|
-
"show-password": ""
|
|
222
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
223
|
-
];
|
|
224
|
-
}
|
|
225
|
-
}),
|
|
226
|
-
_: 1
|
|
227
|
-
}, _parent2, _scopeId));
|
|
228
|
-
_push2(ssrRenderComponent(_component_me_button, {
|
|
229
|
-
onClick: ($event) => resetForm(unref(formRef))
|
|
230
|
-
}, {
|
|
231
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
232
|
-
if (_push3) {
|
|
233
|
-
_push3(`重置`);
|
|
234
|
-
} else {
|
|
235
|
-
return [
|
|
236
|
-
createTextVNode("重置")
|
|
237
|
-
];
|
|
238
|
-
}
|
|
239
|
-
}),
|
|
240
|
-
_: 1
|
|
241
|
-
}, _parent2, _scopeId));
|
|
242
|
-
_push2(ssrRenderComponent(_component_me_button, {
|
|
243
|
-
type: "primary",
|
|
244
|
-
class: "button submit",
|
|
245
|
-
onClick: submit
|
|
246
|
-
}, {
|
|
247
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
248
|
-
if (_push3) {
|
|
249
|
-
_push3(`确定`);
|
|
250
|
-
} else {
|
|
251
|
-
return [
|
|
252
|
-
createTextVNode("确定")
|
|
253
|
-
];
|
|
254
|
-
}
|
|
255
|
-
}),
|
|
256
|
-
_: 1
|
|
257
|
-
}, _parent2, _scopeId));
|
|
258
|
-
} else {
|
|
259
|
-
return [
|
|
260
|
-
createVNode(_component_el_form_item, {
|
|
261
|
-
prop: "orgPassword",
|
|
262
|
-
label: "原始密码"
|
|
263
|
-
}, {
|
|
264
|
-
default: withCtx(() => [
|
|
265
|
-
createVNode(_component_el_input, {
|
|
266
|
-
modelValue: unref(editPassParams).orgPassword,
|
|
267
|
-
"onUpdate:modelValue": ($event) => unref(editPassParams).orgPassword = $event,
|
|
268
|
-
type: "password",
|
|
269
|
-
placeholder: "原始密码",
|
|
270
|
-
clearable: "",
|
|
271
|
-
"show-password": ""
|
|
272
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
273
|
-
]),
|
|
274
|
-
_: 1
|
|
275
|
-
}),
|
|
276
|
-
createVNode(_component_el_form_item, {
|
|
277
|
-
prop: "password",
|
|
278
|
-
label: "新密码"
|
|
279
|
-
}, {
|
|
280
|
-
default: withCtx(() => [
|
|
281
|
-
createVNode(_component_el_input, {
|
|
282
|
-
modelValue: unref(editPassParams).password,
|
|
283
|
-
"onUpdate:modelValue": ($event) => unref(editPassParams).password = $event,
|
|
284
|
-
type: "password",
|
|
285
|
-
placeholder: "新密码",
|
|
286
|
-
clearable: "",
|
|
287
|
-
"show-password": ""
|
|
288
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
289
|
-
]),
|
|
290
|
-
_: 1
|
|
291
|
-
}),
|
|
292
|
-
createVNode(_component_el_form_item, {
|
|
293
|
-
prop: "reqPassword",
|
|
294
|
-
label: "确认密码"
|
|
295
|
-
}, {
|
|
296
|
-
default: withCtx(() => [
|
|
297
|
-
createVNode(_component_el_input, {
|
|
298
|
-
modelValue: unref(editPassParams).reqPassword,
|
|
299
|
-
"onUpdate:modelValue": ($event) => unref(editPassParams).reqPassword = $event,
|
|
300
|
-
type: "password",
|
|
301
|
-
placeholder: "请重复输入新密码",
|
|
302
|
-
clearable: "",
|
|
303
|
-
"show-password": ""
|
|
304
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
305
|
-
]),
|
|
306
|
-
_: 1
|
|
307
|
-
}),
|
|
308
|
-
createVNode(_component_me_button, {
|
|
309
|
-
onClick: ($event) => resetForm(unref(formRef))
|
|
310
|
-
}, {
|
|
311
|
-
default: withCtx(() => [
|
|
312
|
-
createTextVNode("重置")
|
|
313
|
-
]),
|
|
314
|
-
_: 1
|
|
315
|
-
}, 8, ["onClick"]),
|
|
316
|
-
createVNode(_component_me_button, {
|
|
317
|
-
type: "primary",
|
|
318
|
-
class: "button submit",
|
|
319
|
-
onClick: submit
|
|
320
|
-
}, {
|
|
321
|
-
default: withCtx(() => [
|
|
322
|
-
createTextVNode("确定")
|
|
323
|
-
]),
|
|
324
|
-
_: 1
|
|
325
|
-
})
|
|
326
|
-
];
|
|
327
|
-
}
|
|
328
|
-
}),
|
|
329
|
-
_: 1
|
|
330
|
-
}, _parent));
|
|
331
|
-
_push(`</div>`);
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
__ssr_vue_processAssetPath;
|
|
336
|
-
const _sfc_setup$2 = _sfc_main$2.setup;
|
|
337
|
-
_sfc_main$2.setup = (props, ctx) => {
|
|
338
|
-
const ssrContext = useSSRContext();
|
|
339
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/user/components/editPass.vue");
|
|
340
|
-
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
|
341
|
-
};
|
|
342
|
-
const editPass = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-b028dd6a"]]);
|
|
343
|
-
const __default__$1 = defineComponent({ "setup": true, "name": "UserInfo" });
|
|
344
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
345
|
-
...__default__$1,
|
|
346
|
-
__name: "userInfo",
|
|
347
|
-
__ssrInlineRender: true,
|
|
348
|
-
async setup(__props) {
|
|
349
|
-
let __temp, __restore;
|
|
350
|
-
const userInfo2 = ([__temp, __restore] = withAsyncContext(() => userInfoApi().runAsync()), __temp = await __temp, __restore(), __temp);
|
|
351
|
-
const userParams = reactive(userInfo2);
|
|
352
|
-
const rules = {
|
|
353
|
-
nickname: [
|
|
354
|
-
{
|
|
355
|
-
required: true,
|
|
356
|
-
message: "请填写昵称",
|
|
357
|
-
trigger: "blur"
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
min: 3,
|
|
361
|
-
max: 8,
|
|
362
|
-
message: "长度必须在 3 到 8个字符之间",
|
|
363
|
-
trigger: "blur"
|
|
364
|
-
}
|
|
365
|
-
],
|
|
366
|
-
username: [
|
|
367
|
-
{
|
|
368
|
-
required: true,
|
|
369
|
-
message: "请填写用户名",
|
|
370
|
-
trigger: "blur"
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
min: 3,
|
|
374
|
-
max: 8,
|
|
375
|
-
message: "长度必须在 3 到 8个字符之间",
|
|
376
|
-
trigger: "blur"
|
|
377
|
-
}
|
|
378
|
-
],
|
|
379
|
-
email: [
|
|
380
|
-
{
|
|
381
|
-
type: "email",
|
|
382
|
-
message: "请输入正确的邮箱格式",
|
|
383
|
-
trigger: ["blur"]
|
|
384
|
-
}
|
|
385
|
-
],
|
|
386
|
-
mobile: [
|
|
387
|
-
{
|
|
388
|
-
pattern: /^1[0-9]\d{9}$/,
|
|
389
|
-
message: "请输入正确的手机号",
|
|
390
|
-
trigger: ["blur"]
|
|
391
|
-
}
|
|
392
|
-
]
|
|
393
|
-
};
|
|
394
|
-
const formRef = ref();
|
|
395
|
-
const submit = async () => {
|
|
396
|
-
formRef.value?.validate(async (valid, fields) => {
|
|
397
|
-
if (valid) {
|
|
398
|
-
await updateUserApi().runAsync(userParams);
|
|
399
|
-
} else {
|
|
400
|
-
console.log("提交错误", fields);
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
};
|
|
404
|
-
const resetForm = (formEl) => {
|
|
405
|
-
if (!formEl) return;
|
|
406
|
-
formEl.resetFields();
|
|
407
|
-
};
|
|
408
|
-
return (_ctx, _push, _parent, _attrs) => {
|
|
409
|
-
const _component_el_form = ElForm;
|
|
410
|
-
const _component_el_form_item = ElFormItem;
|
|
411
|
-
const _component_me_up_avatar = __unplugin_components_2;
|
|
412
|
-
const _component_el_input = ElInput;
|
|
413
|
-
const _component_me_button = _sfc_main$3;
|
|
414
|
-
_push(`<div${ssrRenderAttrs(mergeProps({ class: "user-info" }, _attrs))} data-v-17d765d9>`);
|
|
415
|
-
_push(ssrRenderComponent(_component_el_form, {
|
|
416
|
-
ref_key: "formRef",
|
|
417
|
-
ref: formRef,
|
|
418
|
-
size: "large",
|
|
419
|
-
"label-width": "auto",
|
|
420
|
-
rules,
|
|
421
|
-
model: unref(userParams),
|
|
422
|
-
onKeyup: submit
|
|
423
|
-
}, {
|
|
424
|
-
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
425
|
-
if (_push2) {
|
|
426
|
-
_push2(ssrRenderComponent(_component_el_form_item, {
|
|
427
|
-
prop: "username",
|
|
428
|
-
class: "upload-item"
|
|
429
|
-
}, {
|
|
430
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
431
|
-
if (_push3) {
|
|
432
|
-
_push3(ssrRenderComponent(_component_me_up_avatar, {
|
|
433
|
-
modelValue: unref(userParams).avatar,
|
|
434
|
-
"onUpdate:modelValue": ($event) => unref(userParams).avatar = $event
|
|
435
|
-
}, null, _parent3, _scopeId2));
|
|
436
|
-
} else {
|
|
437
|
-
return [
|
|
438
|
-
createVNode(_component_me_up_avatar, {
|
|
439
|
-
modelValue: unref(userParams).avatar,
|
|
440
|
-
"onUpdate:modelValue": ($event) => unref(userParams).avatar = $event
|
|
441
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
442
|
-
];
|
|
443
|
-
}
|
|
444
|
-
}),
|
|
445
|
-
_: 1
|
|
446
|
-
}, _parent2, _scopeId));
|
|
447
|
-
_push2(ssrRenderComponent(_component_el_form_item, {
|
|
448
|
-
prop: "nickname",
|
|
449
|
-
label: "昵称"
|
|
450
|
-
}, {
|
|
451
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
452
|
-
if (_push3) {
|
|
453
|
-
_push3(ssrRenderComponent(_component_el_input, {
|
|
454
|
-
modelValue: unref(userParams).nickname,
|
|
455
|
-
"onUpdate:modelValue": ($event) => unref(userParams).nickname = $event,
|
|
456
|
-
autofocus: "",
|
|
457
|
-
placeholder: "昵称",
|
|
458
|
-
clearable: ""
|
|
459
|
-
}, null, _parent3, _scopeId2));
|
|
460
|
-
} else {
|
|
461
|
-
return [
|
|
462
|
-
createVNode(_component_el_input, {
|
|
463
|
-
modelValue: unref(userParams).nickname,
|
|
464
|
-
"onUpdate:modelValue": ($event) => unref(userParams).nickname = $event,
|
|
465
|
-
autofocus: "",
|
|
466
|
-
placeholder: "昵称",
|
|
467
|
-
clearable: ""
|
|
468
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
469
|
-
];
|
|
470
|
-
}
|
|
471
|
-
}),
|
|
472
|
-
_: 1
|
|
473
|
-
}, _parent2, _scopeId));
|
|
474
|
-
_push2(ssrRenderComponent(_component_el_form_item, {
|
|
475
|
-
prop: "username",
|
|
476
|
-
label: "用户名"
|
|
477
|
-
}, {
|
|
478
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
479
|
-
if (_push3) {
|
|
480
|
-
_push3(ssrRenderComponent(_component_el_input, {
|
|
481
|
-
modelValue: unref(userParams).username,
|
|
482
|
-
"onUpdate:modelValue": ($event) => unref(userParams).username = $event,
|
|
483
|
-
placeholder: "用户名",
|
|
484
|
-
clearable: ""
|
|
485
|
-
}, null, _parent3, _scopeId2));
|
|
486
|
-
} else {
|
|
487
|
-
return [
|
|
488
|
-
createVNode(_component_el_input, {
|
|
489
|
-
modelValue: unref(userParams).username,
|
|
490
|
-
"onUpdate:modelValue": ($event) => unref(userParams).username = $event,
|
|
491
|
-
placeholder: "用户名",
|
|
492
|
-
clearable: ""
|
|
493
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
494
|
-
];
|
|
495
|
-
}
|
|
496
|
-
}),
|
|
497
|
-
_: 1
|
|
498
|
-
}, _parent2, _scopeId));
|
|
499
|
-
_push2(ssrRenderComponent(_component_el_form_item, {
|
|
500
|
-
prop: "email",
|
|
501
|
-
label: "邮箱"
|
|
502
|
-
}, {
|
|
503
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
504
|
-
if (_push3) {
|
|
505
|
-
_push3(ssrRenderComponent(_component_el_input, {
|
|
506
|
-
modelValue: unref(userParams).email,
|
|
507
|
-
"onUpdate:modelValue": ($event) => unref(userParams).email = $event,
|
|
508
|
-
placeholder: "邮箱",
|
|
509
|
-
clearable: ""
|
|
510
|
-
}, null, _parent3, _scopeId2));
|
|
511
|
-
} else {
|
|
512
|
-
return [
|
|
513
|
-
createVNode(_component_el_input, {
|
|
514
|
-
modelValue: unref(userParams).email,
|
|
515
|
-
"onUpdate:modelValue": ($event) => unref(userParams).email = $event,
|
|
516
|
-
placeholder: "邮箱",
|
|
517
|
-
clearable: ""
|
|
518
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
519
|
-
];
|
|
520
|
-
}
|
|
521
|
-
}),
|
|
522
|
-
_: 1
|
|
523
|
-
}, _parent2, _scopeId));
|
|
524
|
-
_push2(ssrRenderComponent(_component_el_form_item, {
|
|
525
|
-
prop: "mobile",
|
|
526
|
-
label: "手机号"
|
|
527
|
-
}, {
|
|
528
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
529
|
-
if (_push3) {
|
|
530
|
-
_push3(ssrRenderComponent(_component_el_input, {
|
|
531
|
-
modelValue: unref(userParams).mobile,
|
|
532
|
-
"onUpdate:modelValue": ($event) => unref(userParams).mobile = $event,
|
|
533
|
-
placeholder: "手机号",
|
|
534
|
-
clearable: ""
|
|
535
|
-
}, null, _parent3, _scopeId2));
|
|
536
|
-
} else {
|
|
537
|
-
return [
|
|
538
|
-
createVNode(_component_el_input, {
|
|
539
|
-
modelValue: unref(userParams).mobile,
|
|
540
|
-
"onUpdate:modelValue": ($event) => unref(userParams).mobile = $event,
|
|
541
|
-
placeholder: "手机号",
|
|
542
|
-
clearable: ""
|
|
543
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
544
|
-
];
|
|
545
|
-
}
|
|
546
|
-
}),
|
|
547
|
-
_: 1
|
|
548
|
-
}, _parent2, _scopeId));
|
|
549
|
-
_push2(ssrRenderComponent(_component_me_button, {
|
|
550
|
-
onClick: ($event) => resetForm(unref(formRef))
|
|
551
|
-
}, {
|
|
552
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
553
|
-
if (_push3) {
|
|
554
|
-
_push3(`重置`);
|
|
555
|
-
} else {
|
|
556
|
-
return [
|
|
557
|
-
createTextVNode("重置")
|
|
558
|
-
];
|
|
559
|
-
}
|
|
560
|
-
}),
|
|
561
|
-
_: 1
|
|
562
|
-
}, _parent2, _scopeId));
|
|
563
|
-
_push2(ssrRenderComponent(_component_me_button, {
|
|
564
|
-
type: "primary",
|
|
565
|
-
class: "button submit",
|
|
566
|
-
onClick: submit
|
|
567
|
-
}, {
|
|
568
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
569
|
-
if (_push3) {
|
|
570
|
-
_push3(`确定`);
|
|
571
|
-
} else {
|
|
572
|
-
return [
|
|
573
|
-
createTextVNode("确定")
|
|
574
|
-
];
|
|
575
|
-
}
|
|
576
|
-
}),
|
|
577
|
-
_: 1
|
|
578
|
-
}, _parent2, _scopeId));
|
|
579
|
-
} else {
|
|
580
|
-
return [
|
|
581
|
-
createVNode(_component_el_form_item, {
|
|
582
|
-
prop: "username",
|
|
583
|
-
class: "upload-item"
|
|
584
|
-
}, {
|
|
585
|
-
default: withCtx(() => [
|
|
586
|
-
createVNode(_component_me_up_avatar, {
|
|
587
|
-
modelValue: unref(userParams).avatar,
|
|
588
|
-
"onUpdate:modelValue": ($event) => unref(userParams).avatar = $event
|
|
589
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
590
|
-
]),
|
|
591
|
-
_: 1
|
|
592
|
-
}),
|
|
593
|
-
createVNode(_component_el_form_item, {
|
|
594
|
-
prop: "nickname",
|
|
595
|
-
label: "昵称"
|
|
596
|
-
}, {
|
|
597
|
-
default: withCtx(() => [
|
|
598
|
-
createVNode(_component_el_input, {
|
|
599
|
-
modelValue: unref(userParams).nickname,
|
|
600
|
-
"onUpdate:modelValue": ($event) => unref(userParams).nickname = $event,
|
|
601
|
-
autofocus: "",
|
|
602
|
-
placeholder: "昵称",
|
|
603
|
-
clearable: ""
|
|
604
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
605
|
-
]),
|
|
606
|
-
_: 1
|
|
607
|
-
}),
|
|
608
|
-
createVNode(_component_el_form_item, {
|
|
609
|
-
prop: "username",
|
|
610
|
-
label: "用户名"
|
|
611
|
-
}, {
|
|
612
|
-
default: withCtx(() => [
|
|
613
|
-
createVNode(_component_el_input, {
|
|
614
|
-
modelValue: unref(userParams).username,
|
|
615
|
-
"onUpdate:modelValue": ($event) => unref(userParams).username = $event,
|
|
616
|
-
placeholder: "用户名",
|
|
617
|
-
clearable: ""
|
|
618
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
619
|
-
]),
|
|
620
|
-
_: 1
|
|
621
|
-
}),
|
|
622
|
-
createVNode(_component_el_form_item, {
|
|
623
|
-
prop: "email",
|
|
624
|
-
label: "邮箱"
|
|
625
|
-
}, {
|
|
626
|
-
default: withCtx(() => [
|
|
627
|
-
createVNode(_component_el_input, {
|
|
628
|
-
modelValue: unref(userParams).email,
|
|
629
|
-
"onUpdate:modelValue": ($event) => unref(userParams).email = $event,
|
|
630
|
-
placeholder: "邮箱",
|
|
631
|
-
clearable: ""
|
|
632
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
633
|
-
]),
|
|
634
|
-
_: 1
|
|
635
|
-
}),
|
|
636
|
-
createVNode(_component_el_form_item, {
|
|
637
|
-
prop: "mobile",
|
|
638
|
-
label: "手机号"
|
|
639
|
-
}, {
|
|
640
|
-
default: withCtx(() => [
|
|
641
|
-
createVNode(_component_el_input, {
|
|
642
|
-
modelValue: unref(userParams).mobile,
|
|
643
|
-
"onUpdate:modelValue": ($event) => unref(userParams).mobile = $event,
|
|
644
|
-
placeholder: "手机号",
|
|
645
|
-
clearable: ""
|
|
646
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
647
|
-
]),
|
|
648
|
-
_: 1
|
|
649
|
-
}),
|
|
650
|
-
createVNode(_component_me_button, {
|
|
651
|
-
onClick: ($event) => resetForm(unref(formRef))
|
|
652
|
-
}, {
|
|
653
|
-
default: withCtx(() => [
|
|
654
|
-
createTextVNode("重置")
|
|
655
|
-
]),
|
|
656
|
-
_: 1
|
|
657
|
-
}, 8, ["onClick"]),
|
|
658
|
-
createVNode(_component_me_button, {
|
|
659
|
-
type: "primary",
|
|
660
|
-
class: "button submit",
|
|
661
|
-
onClick: submit
|
|
662
|
-
}, {
|
|
663
|
-
default: withCtx(() => [
|
|
664
|
-
createTextVNode("确定")
|
|
665
|
-
]),
|
|
666
|
-
_: 1
|
|
667
|
-
})
|
|
668
|
-
];
|
|
669
|
-
}
|
|
670
|
-
}),
|
|
671
|
-
_: 1
|
|
672
|
-
}, _parent));
|
|
673
|
-
_push(`</div>`);
|
|
674
|
-
};
|
|
675
|
-
}
|
|
676
|
-
});
|
|
677
|
-
__ssr_vue_processAssetPath;
|
|
678
|
-
const _sfc_setup$1 = _sfc_main$1.setup;
|
|
679
|
-
_sfc_main$1.setup = (props, ctx) => {
|
|
680
|
-
const ssrContext = useSSRContext();
|
|
681
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/user/components/userInfo.vue");
|
|
682
|
-
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
683
|
-
};
|
|
684
|
-
const userInfo = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-17d765d9"]]);
|
|
685
|
-
const __default__ = defineComponent({ "setup": true, "name": "UserIndex" });
|
|
686
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
687
|
-
...__default__,
|
|
688
|
-
__name: "index",
|
|
689
|
-
__ssrInlineRender: true,
|
|
690
|
-
props: {
|
|
691
|
-
active: {}
|
|
692
|
-
},
|
|
693
|
-
setup(__props) {
|
|
694
|
-
const userStore = useUserStore();
|
|
695
|
-
const router = useRouter();
|
|
696
|
-
const logOut = () => {
|
|
697
|
-
userStore.logOut(router);
|
|
698
|
-
};
|
|
699
|
-
return (_ctx, _push, _parent, _attrs) => {
|
|
700
|
-
const _component_el_menu = ElMenu;
|
|
701
|
-
const _component_el_menu_item = ElMenuItem;
|
|
702
|
-
const _component_mel_icon_user = resolveComponent("mel-icon-user");
|
|
703
|
-
const _component_router_link = resolveComponent("router-link");
|
|
704
|
-
const _component_mel_icon_key = resolveComponent("mel-icon-key");
|
|
705
|
-
const _component_mel_icon_arrow_right = resolveComponent("mel-icon-arrow-right");
|
|
706
|
-
_push(`<div${ssrRenderAttrs(mergeProps({ class: "index" }, _attrs))} data-v-efed51a6><div class="left-menu" data-v-efed51a6><div class="title" data-v-efed51a6>个人中心</div>`);
|
|
707
|
-
_push(ssrRenderComponent(_component_el_menu, {
|
|
708
|
-
"default-active": __props.active,
|
|
709
|
-
class: "menu"
|
|
710
|
-
}, {
|
|
711
|
-
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
712
|
-
if (_push2) {
|
|
713
|
-
_push2(ssrRenderComponent(_component_el_menu_item, { index: "userInfo" }, {
|
|
714
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
715
|
-
if (_push3) {
|
|
716
|
-
_push3(ssrRenderComponent(_component_mel_icon_user, null, null, _parent3, _scopeId2));
|
|
717
|
-
_push3(ssrRenderComponent(_component_router_link, {
|
|
718
|
-
to: unref(PageEnum).USER + "/userInfo"
|
|
719
|
-
}, {
|
|
720
|
-
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
721
|
-
if (_push4) {
|
|
722
|
-
_push4(`个人资料`);
|
|
723
|
-
} else {
|
|
724
|
-
return [
|
|
725
|
-
createTextVNode("个人资料")
|
|
726
|
-
];
|
|
727
|
-
}
|
|
728
|
-
}),
|
|
729
|
-
_: 1
|
|
730
|
-
}, _parent3, _scopeId2));
|
|
731
|
-
} else {
|
|
732
|
-
return [
|
|
733
|
-
createVNode(_component_mel_icon_user),
|
|
734
|
-
createVNode(_component_router_link, {
|
|
735
|
-
to: unref(PageEnum).USER + "/userInfo"
|
|
736
|
-
}, {
|
|
737
|
-
default: withCtx(() => [
|
|
738
|
-
createTextVNode("个人资料")
|
|
739
|
-
]),
|
|
740
|
-
_: 1
|
|
741
|
-
}, 8, ["to"])
|
|
742
|
-
];
|
|
743
|
-
}
|
|
744
|
-
}),
|
|
745
|
-
_: 1
|
|
746
|
-
}, _parent2, _scopeId));
|
|
747
|
-
_push2(ssrRenderComponent(_component_el_menu_item, { index: "editPass" }, {
|
|
748
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
749
|
-
if (_push3) {
|
|
750
|
-
_push3(ssrRenderComponent(_component_mel_icon_key, null, null, _parent3, _scopeId2));
|
|
751
|
-
_push3(ssrRenderComponent(_component_router_link, {
|
|
752
|
-
to: unref(PageEnum).USER + "/editPass"
|
|
753
|
-
}, {
|
|
754
|
-
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
755
|
-
if (_push4) {
|
|
756
|
-
_push4(`修改密码`);
|
|
757
|
-
} else {
|
|
758
|
-
return [
|
|
759
|
-
createTextVNode("修改密码")
|
|
760
|
-
];
|
|
761
|
-
}
|
|
762
|
-
}),
|
|
763
|
-
_: 1
|
|
764
|
-
}, _parent3, _scopeId2));
|
|
765
|
-
} else {
|
|
766
|
-
return [
|
|
767
|
-
createVNode(_component_mel_icon_key),
|
|
768
|
-
createVNode(_component_router_link, {
|
|
769
|
-
to: unref(PageEnum).USER + "/editPass"
|
|
770
|
-
}, {
|
|
771
|
-
default: withCtx(() => [
|
|
772
|
-
createTextVNode("修改密码")
|
|
773
|
-
]),
|
|
774
|
-
_: 1
|
|
775
|
-
}, 8, ["to"])
|
|
776
|
-
];
|
|
777
|
-
}
|
|
778
|
-
}),
|
|
779
|
-
_: 1
|
|
780
|
-
}, _parent2, _scopeId));
|
|
781
|
-
_push2(ssrRenderComponent(_component_el_menu_item, { index: "logout" }, {
|
|
782
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
783
|
-
if (_push3) {
|
|
784
|
-
_push3(ssrRenderComponent(_component_mel_icon_arrow_right, null, null, _parent3, _scopeId2));
|
|
785
|
-
_push3(`<span data-v-efed51a6${_scopeId2}>退出</span>`);
|
|
786
|
-
} else {
|
|
787
|
-
return [
|
|
788
|
-
createVNode(_component_mel_icon_arrow_right),
|
|
789
|
-
createVNode("span", {
|
|
790
|
-
onClick: ($event) => logOut()
|
|
791
|
-
}, "退出", 8, ["onClick"])
|
|
792
|
-
];
|
|
793
|
-
}
|
|
794
|
-
}),
|
|
795
|
-
_: 1
|
|
796
|
-
}, _parent2, _scopeId));
|
|
797
|
-
} else {
|
|
798
|
-
return [
|
|
799
|
-
createVNode(_component_el_menu_item, { index: "userInfo" }, {
|
|
800
|
-
default: withCtx(() => [
|
|
801
|
-
createVNode(_component_mel_icon_user),
|
|
802
|
-
createVNode(_component_router_link, {
|
|
803
|
-
to: unref(PageEnum).USER + "/userInfo"
|
|
804
|
-
}, {
|
|
805
|
-
default: withCtx(() => [
|
|
806
|
-
createTextVNode("个人资料")
|
|
807
|
-
]),
|
|
808
|
-
_: 1
|
|
809
|
-
}, 8, ["to"])
|
|
810
|
-
]),
|
|
811
|
-
_: 1
|
|
812
|
-
}),
|
|
813
|
-
createVNode(_component_el_menu_item, { index: "editPass" }, {
|
|
814
|
-
default: withCtx(() => [
|
|
815
|
-
createVNode(_component_mel_icon_key),
|
|
816
|
-
createVNode(_component_router_link, {
|
|
817
|
-
to: unref(PageEnum).USER + "/editPass"
|
|
818
|
-
}, {
|
|
819
|
-
default: withCtx(() => [
|
|
820
|
-
createTextVNode("修改密码")
|
|
821
|
-
]),
|
|
822
|
-
_: 1
|
|
823
|
-
}, 8, ["to"])
|
|
824
|
-
]),
|
|
825
|
-
_: 1
|
|
826
|
-
}),
|
|
827
|
-
createVNode(_component_el_menu_item, { index: "logout" }, {
|
|
828
|
-
default: withCtx(() => [
|
|
829
|
-
createVNode(_component_mel_icon_arrow_right),
|
|
830
|
-
createVNode("span", {
|
|
831
|
-
onClick: ($event) => logOut()
|
|
832
|
-
}, "退出", 8, ["onClick"])
|
|
833
|
-
]),
|
|
834
|
-
_: 1
|
|
835
|
-
})
|
|
836
|
-
];
|
|
837
|
-
}
|
|
838
|
-
}),
|
|
839
|
-
_: 1
|
|
840
|
-
}, _parent));
|
|
841
|
-
_push(`</div><div class="right-content" data-v-efed51a6>`);
|
|
842
|
-
if (__props.active == "userInfo") {
|
|
843
|
-
_push(ssrRenderComponent(userInfo, null, null, _parent));
|
|
844
|
-
} else if (__props.active == "editPass") {
|
|
845
|
-
_push(ssrRenderComponent(editPass, null, null, _parent));
|
|
846
|
-
} else {
|
|
847
|
-
_push(`<!---->`);
|
|
848
|
-
}
|
|
849
|
-
_push(`</div></div>`);
|
|
850
|
-
};
|
|
851
|
-
}
|
|
852
|
-
});
|
|
853
|
-
__ssr_vue_processAssetPath;
|
|
854
|
-
const _sfc_setup = _sfc_main.setup;
|
|
855
|
-
_sfc_main.setup = (props, ctx) => {
|
|
856
|
-
const ssrContext = useSSRContext();
|
|
857
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/user/index.vue");
|
|
858
|
-
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
859
|
-
};
|
|
860
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-efed51a6"]]);
|
|
861
|
-
export {
|
|
862
|
-
index as default
|
|
863
|
-
};
|