mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-05 19:41:59 +08:00
fix: modify readme
This commit is contained in:
parent
54cc857394
commit
ebb863078c
@ -1,5 +1,6 @@
|
||||
<div align="center">
|
||||
<h1> <img src="./public/favicon.svg" style="width:30px"/> Ench Admin</h1>
|
||||
<img src="./public/favicon.svg" style="width:150px"/>
|
||||
<h1>Ench Admin</h1>
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
@ -11,7 +12,7 @@
|
||||
</div>
|
||||
|
||||
## 🌈 介绍
|
||||
[Ench-admin](https://github.com/chen-see/ench-admin)一个基于Vue3、Vite3、Typescript、pinia、Naive UI、Vue-Router的后台管理免费开源模板,助力提高开发效率,让大家早点下班做自己的事情
|
||||
[Ench-admin](https://github.com/chen-see/ench-admin)一个基于Vue3、Vite4、Typescript、pinia、Naive UI、Vue-Router的后台管理免费开源模板,助力提高后台管理项目开发效率
|
||||
|
||||
## 😎 线上预览地址
|
||||
|
||||
|
@ -7,7 +7,7 @@ const token = () => Random.string('upper', 32, 32)
|
||||
|
||||
const userData = [
|
||||
{
|
||||
userId: 1,
|
||||
userId: '1',
|
||||
userName: 'super',
|
||||
password: '123456',
|
||||
nickName: '超级管理员大人',
|
||||
@ -15,7 +15,7 @@ const userData = [
|
||||
role: 'super',
|
||||
},
|
||||
{
|
||||
userId: 2,
|
||||
userId: '2',
|
||||
userName: 'admin',
|
||||
password: '123456',
|
||||
nickName: '管理员大人',
|
||||
@ -23,7 +23,7 @@ const userData = [
|
||||
role: 'admin',
|
||||
},
|
||||
{
|
||||
userId: 3,
|
||||
userId: '3',
|
||||
userName: 'user',
|
||||
password: '123456',
|
||||
nickName: '用户大人',
|
||||
@ -472,11 +472,13 @@ export default [
|
||||
url: '/mock/getUserInfo',
|
||||
method: 'get',
|
||||
response: (options: any) => {
|
||||
const { userId = undefined } = options.query
|
||||
const { userId } = options.query
|
||||
if (!userId)
|
||||
return resultFailed(null, '未传入用户id!')
|
||||
|
||||
const userInfo = userData.find(item => item.userId === userId)
|
||||
console.warn("🚀 ~ file: user.ts:480 ~ userData:", userData)
|
||||
console.warn("🚀 ~ file: user.ts:486 ~ userId:", userId)
|
||||
if (userInfo)
|
||||
return resultSuccess(userInfo)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user