Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
lianghx-319 committed Apr 8, 2020
2 parents f5acd0c + 4840696 commit 1e601ae
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 15 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## Table of Contents

- [Introduction](#introduction)
- [Demo](#demo)
- [Features](#features)
- [Links](#links)
- [Usage](#usage)
Expand Down Expand Up @@ -46,6 +47,22 @@ Create an enterprise nuxt app in seconds.

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

## [Demo](https://femessage.github.io/create-nuxt-app/)

### Nuxt-Admin

- 租户id admin
- 帐号 admin
- 密码 abcd1234

**run local dev server**

```sh
# white a .env file in root
API_SERVER=https://mockapi.eolinker.com/IeZWjzy87c204a1f7030b2a17b00f3776ce0a07a5030a1b
APP_ID=1204701543597604893
```

## Usage

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`)
Expand Down
26 changes: 13 additions & 13 deletions template/framework-admin/components/sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,31 +68,31 @@ export default {
flex-direction: column;
justify-content: space-between;
.el-menu {
> .el-menu {
box-sizing: border-box;
padding-top: 12px;
flex: 1;
border: none;
height: calc(100vh - @--footer-height - @--header-height);
width: 100% !important;
}
.el-menu-item {
&:hover {
color: @menu-active-text-color !important;
background-color: transparent !important;
}
&.is-active {
background-color: @--color-primary !important;
}
.el-menu-item {
&:hover {
color: @menu-active-text-color !important;
background-color: transparent !important;
}
[class*='icon'] {
font-size: 14px;
margin-right: 5px;
&.is-active {
background-color: @--color-primary !important;
}
}
[class*='icon'] {
font-size: 14px;
margin-right: 5px;
}
.fix-btn-wrap {
height: @--footer-height;
Expand Down
11 changes: 9 additions & 2 deletions template/framework-admin/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const cookieConfig = {
get domain() {
const {hostname} = location
// 本地环境
if (/^(127\.0\.0\.1|localhost)|(netlify\.com)$/.test(hostname))
if (!(/deepexi\.(com|top)$/.test(hostname)))
return hostname
// 线上环境
const s = hostname.indexOf('.')
Expand All @@ -17,12 +17,19 @@ const cookieConfig = {
},
}

const createMenuItem = ({name = '', id = '', pathUrl = '/', iconUrl}) => {
const createMenuItem = ({
name = '',
id = '',
pathUrl = '/',
iconUrl,
children = [],
}) => {
return {
url: pathUrl,
id: id,
name: name,
icon: iconUrl,
children: children?.length ? children.map(createMenuItem) : null,
}
}

Expand Down

0 comments on commit 1e601ae

Please sign in to comment.