Skip to content

Commit 6020d11

Browse files
author
chuzhixin
committed
Merge branch 'master' of https://github.com/chuzhixin/vue-admin-beautiful into master
2 parents ab97312 + 1696caa commit 6020d11

File tree

13 files changed

+21
-25
lines changed

13 files changed

+21
-25
lines changed

mock/controller/roleManagement.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { mock } from "mockjs";
21
const totalCount = 2;
32
const List = [
43
{
@@ -17,8 +16,7 @@ export default [
1716
response(config) {
1817
const { title = "", pageNo = 1, pageSize = 20 } = config.body;
1918
let mockList = List.filter((item) => {
20-
if (title && item.title.indexOf(title) < 0) return false;
21-
return true;
19+
return !(title && item.title.indexOf(title) < 0);
2220
});
2321
const pageList = mockList.filter(
2422
(item, index) =>
@@ -35,7 +33,7 @@ export default [
3533
{
3634
url: "/roleManagement/doEdit",
3735
type: "post",
38-
response(config) {
36+
response() {
3937
return {
4038
code: 200,
4139
msg: "模拟保存成功",
@@ -45,7 +43,7 @@ export default [
4543
{
4644
url: "/roleManagement/doDelete",
4745
type: "post",
48-
response(config) {
46+
response() {
4947
return {
5048
code: 200,
5149
msg: "模拟删除成功",

mock/controller/table.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { mock } from "mockjs";
22
import { handleRandomImage } from "../utils";
3+
34
const List = [];
45
const count = 999;
56
for (let i = 0; i < count; i++) {
@@ -50,8 +51,7 @@ export default [
5051
}
5152
const { title = "", pageNo = 1, pageSize = 20 } = config.body;
5253
let mockList = List.filter((item) => {
53-
if (title && item.title.indexOf(title) < 0) return false;
54-
return true;
54+
return !(title && item.title.indexOf(title) < 0);
5555
});
5656
const pageList = mockList.filter(
5757
(item, index) =>
@@ -68,7 +68,7 @@ export default [
6868
{
6969
url: "/table/doEdit",
7070
type: "post",
71-
response(config) {
71+
response() {
7272
return {
7373
code: 200,
7474
msg: "模拟保存成功",
@@ -78,7 +78,7 @@ export default [
7878
{
7979
url: "/table/doDelete",
8080
type: "post",
81-
response(config) {
81+
response() {
8282
return {
8383
code: 200,
8484
msg: "模拟删除成功",

mock/controller/user.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { handleRandomImage } from "../utils";
21
const accessTokens = {
32
admin: "admin-accessToken",
43
editor: "editor-accessToken",
@@ -9,7 +8,7 @@ export default [
98
{
109
url: "/publicKey",
1110
type: "post",
12-
response(config) {
11+
response() {
1312
return {
1413
code: 200,
1514
msg: "success",
@@ -83,7 +82,6 @@ export default [
8382
};
8483
},
8584
},
86-
8785
{
8886
url: "/logout",
8987
type: "post",

src/api/user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export function logout() {
2929
method: "post",
3030
});
3131
}
32+
3233
export function register() {
3334
return request({
3435
url: "/register",

src/colorfulIcon/svg/vab.svg

Lines changed: 3 additions & 4 deletions
Loading

src/config/permission.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import getPageTitle from "@/utils/pageTitle";
1010
import {
1111
authentication,
1212
loginInterception,
13-
routesWhiteList,
1413
progressBar,
1514
recordRoute,
15+
routesWhiteList,
1616
} from "./settings";
1717

1818
VabProgress.configure({

src/plugins/support.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { MessageBox } from "element-ui";
22
import { donation } from "@/config/settings";
3-
import { repository, dependencies } from "../../package.json";
3+
import { dependencies, repository } from "../../package.json";
4+
45
if (!!window.ActiveXObject || "ActiveXObject" in window) {
56
MessageBox({
67
title: "温馨提示",

src/plugins/vabKeel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Heading, Img, Keel, Text } from "zx-keel";
22
import "zx-keel/dist/zx-keel.css";
3+
34
const VabKeel = Keel;
45
const VabKeelHeading = Heading;
56
const VabKeelImg = Img;

src/plugins/vabMarkdownEditor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ZxMarkdownEditor from "zx-markdown-editor";
22
import "zx-markdown-editor/dist/zx-markdown-editor.css";
3+
34
const VabMarkdownEditor = ZxMarkdownEditor;
45
export default VabMarkdownEditor;

src/plugins/vabVerify.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import VabVerify from "zx-verify";
22
import "zx-verify/dist/zx-verify.css";
3+
34
export default VabVerify;

0 commit comments

Comments
 (0)