diff --git a/build/index.js b/build/index.js index 6873a07..0bdcc10 100644 --- a/build/index.js +++ b/build/index.js @@ -1,12 +1,4 @@ -// +---------------------------------------------------------------------- -// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] -// +---------------------------------------------------------------------- -// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved. -// +---------------------------------------------------------------------- -// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 -// +---------------------------------------------------------------------- -// | Author: CRMEB Team -// +---------------------------------------------------------------------- + const { run } = require('runjs') const chalk = require('chalk') const config = require('../vue.config.js') diff --git a/mock/article.js b/mock/article.js index 60a9c93..38cae5a 100644 --- a/mock/article.js +++ b/mock/article.js @@ -1,12 +1,4 @@ -// +---------------------------------------------------------------------- -// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] -// +---------------------------------------------------------------------- -// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved. -// +---------------------------------------------------------------------- -// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 -// +---------------------------------------------------------------------- -// | Author: CRMEB Team -// +---------------------------------------------------------------------- + import Mock from 'mockjs' const List = [] const count = 100 diff --git a/mock/index.js b/mock/index.js index 38cedf3..400028a 100644 --- a/mock/index.js +++ b/mock/index.js @@ -1,12 +1,4 @@ -// +---------------------------------------------------------------------- -// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] -// +---------------------------------------------------------------------- -// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved. -// +---------------------------------------------------------------------- -// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 -// +---------------------------------------------------------------------- -// | Author: CRMEB Team -// +---------------------------------------------------------------------- + import Mock from 'mockjs' import { param2Obj } from '../src/utils' import user from './user' @@ -28,7 +20,7 @@ export function mockXHR() { // mock patch // https://github.com/nuysoft/Mock/issues/300 Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send - Mock.XHR.prototype.send = function() { + Mock.XHR.prototype.send = function () { if (this.custom.xhr) { this.custom.xhr.withCredentials = this.withCredentials || false @@ -40,7 +32,7 @@ export function mockXHR() { } function XHR2ExpressReqWrap(respond) { - return function(options) { + return function (options) { let result = null if (respond instanceof Function) { const { body, type, url } = options diff --git a/mock/mock-server.js b/mock/mock-server.js index 3fd5f73..5de6b1f 100644 --- a/mock/mock-server.js +++ b/mock/mock-server.js @@ -1,12 +1,4 @@ -// +---------------------------------------------------------------------- -// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] -// +---------------------------------------------------------------------- -// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved. -// +---------------------------------------------------------------------- -// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 -// +---------------------------------------------------------------------- -// | Author: CRMEB Team -// +---------------------------------------------------------------------- + const chokidar = require('chokidar') const bodyParser = require('body-parser') const chalk = require('chalk') diff --git a/mock/remote-search.js b/mock/remote-search.js index e1655be..4cf3953 100644 --- a/mock/remote-search.js +++ b/mock/remote-search.js @@ -1,12 +1,4 @@ -// +---------------------------------------------------------------------- -// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] -// +---------------------------------------------------------------------- -// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved. -// +---------------------------------------------------------------------- -// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 -// +---------------------------------------------------------------------- -// | Author: CRMEB Team -// +---------------------------------------------------------------------- + import Mock from 'mockjs' const NameList = [] const count = 100 diff --git a/mock/role/index.js b/mock/role/index.js index 9fff9cc..7c0c4e3 100644 --- a/mock/role/index.js +++ b/mock/role/index.js @@ -1,12 +1,4 @@ -// +---------------------------------------------------------------------- -// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] -// +---------------------------------------------------------------------- -// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved. -// +---------------------------------------------------------------------- -// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 -// +---------------------------------------------------------------------- -// | Author: CRMEB Team -// +---------------------------------------------------------------------- + import Mock from 'mockjs' import { deepClone } from '../../src/utils/index.js' import { asyncRoutes, constantRoutes } from './routes.js' diff --git a/mock/role/routes.js b/mock/role/routes.js index 99d54e2..4987e6a 100644 --- a/mock/role/routes.js +++ b/mock/role/routes.js @@ -1,12 +1,4 @@ -// +---------------------------------------------------------------------- -// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] -// +---------------------------------------------------------------------- -// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved. -// +---------------------------------------------------------------------- -// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 -// +---------------------------------------------------------------------- -// | Author: CRMEB Team -// +---------------------------------------------------------------------- + // Just a mock data export const constantRoutes = [ { diff --git a/mock/user.js b/mock/user.js index 2a06fa6..859bd6f 100644 --- a/mock/user.js +++ b/mock/user.js @@ -1,12 +1,4 @@ -// +---------------------------------------------------------------------- -// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] -// +---------------------------------------------------------------------- -// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved. -// +---------------------------------------------------------------------- -// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 -// +---------------------------------------------------------------------- -// | Author: CRMEB Team -// +---------------------------------------------------------------------- + const tokens = { admin: { token: 'admin-token' diff --git a/src/App.vue b/src/App.vue index c092ceb..7e7b23c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,15 +5,7 @@