Skip to content

Commit 1e601ae

Browse files
committed
Merge branch 'dev'
2 parents f5acd0c + 4840696 commit 1e601ae

File tree

3 files changed

+39
-15
lines changed

3 files changed

+39
-15
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
## Table of Contents
1111

1212
- [Introduction](#introduction)
13+
- [Demo](#demo)
1314
- [Features](#features)
1415
- [Links](#links)
1516
- [Usage](#usage)
@@ -46,6 +47,22 @@ Create an enterprise nuxt app in seconds.
4647

4748
[⬆ Back to Top](#table-of-contents)
4849

50+
## [Demo](https://femessage.github.io/create-nuxt-app/)
51+
52+
### Nuxt-Admin
53+
54+
- 租户id admin
55+
- 帐号 admin
56+
- 密码 abcd1234
57+
58+
**run local dev server**
59+
60+
```sh
61+
# white a .env file in root
62+
API_SERVER=https://mockapi.eolinker.com/IeZWjzy87c204a1f7030b2a17b00f3776ce0a07a5030a1b
63+
APP_ID=1204701543597604893
64+
```
65+
4966
## Usage
5067

5168
Make sure you have [npx](https://www.npmjs.com/package/npx) installed (`npx` is shipped by default since [npm](https://www.npmjs.com/get-npm) `5.2.0`)

template/framework-admin/components/sidebar.vue

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,31 +68,31 @@ export default {
6868
flex-direction: column;
6969
justify-content: space-between;
7070
71-
.el-menu {
71+
> .el-menu {
7272
box-sizing: border-box;
7373
padding-top: 12px;
7474
flex: 1;
7575
border: none;
7676
height: calc(100vh - @--footer-height - @--header-height);
7777
width: 100% !important;
78+
}
7879
79-
.el-menu-item {
80-
&:hover {
81-
color: @menu-active-text-color !important;
82-
background-color: transparent !important;
83-
}
84-
85-
&.is-active {
86-
background-color: @--color-primary !important;
87-
}
80+
.el-menu-item {
81+
&:hover {
82+
color: @menu-active-text-color !important;
83+
background-color: transparent !important;
8884
}
8985
90-
[class*='icon'] {
91-
font-size: 14px;
92-
margin-right: 5px;
86+
&.is-active {
87+
background-color: @--color-primary !important;
9388
}
9489
}
9590
91+
[class*='icon'] {
92+
font-size: 14px;
93+
margin-right: 5px;
94+
}
95+
9696
.fix-btn-wrap {
9797
height: @--footer-height;
9898

template/framework-admin/store/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const cookieConfig = {
55
get domain() {
66
const {hostname} = location
77
// 本地环境
8-
if (/^(127\.0\.0\.1|localhost)|(netlify\.com)$/.test(hostname))
8+
if (!(/deepexi\.(com|top)$/.test(hostname)))
99
return hostname
1010
// 线上环境
1111
const s = hostname.indexOf('.')
@@ -17,12 +17,19 @@ const cookieConfig = {
1717
},
1818
}
1919

20-
const createMenuItem = ({name = '', id = '', pathUrl = '/', iconUrl}) => {
20+
const createMenuItem = ({
21+
name = '',
22+
id = '',
23+
pathUrl = '/',
24+
iconUrl,
25+
children = [],
26+
}) => {
2127
return {
2228
url: pathUrl,
2329
id: id,
2430
name: name,
2531
icon: iconUrl,
32+
children: children?.length ? children.map(createMenuItem) : null,
2633
}
2734
}
2835

0 commit comments

Comments
 (0)