Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vipSupplier
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王淑敏
vipSupplier
Commits
bc7c67c0
Commit
bc7c67c0
authored
Nov 06, 2020
by
chuzhixin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🚀
Update global configuration and code generator
parent
3c9d625d
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
25 additions
and
39 deletions
+25
-39
mock/mockServer.js
+1
-1
src/api/user.js
+1
-1
src/components/VabUpload/index.vue
+1
-1
src/config/config.js
+0
-5
src/config/index.js
+3
-4
src/config/net.config.js
+0
-0
src/config/setting.config.js
+0
-0
src/config/settings.js
+3
-6
src/config/theme.config.js
+0
-0
src/layouts/components/VabAppMain/index.vue
+1
-6
src/layouts/components/VabAvatar/index.vue
+1
-1
src/layouts/components/VabLogo/index.vue
+1
-1
src/layouts/components/VabThemeBar/index.vue
+1
-1
src/layouts/index.vue
+1
-1
src/plugins/support.js
+1
-1
src/router/index.js
+1
-1
src/store/modules/settings.js
+1
-1
src/store/modules/user.js
+1
-1
src/utils/accessToken.js
+1
-1
src/utils/errorLog.js
+1
-1
src/utils/pageTitle.js
+1
-1
src/utils/request.js
+1
-1
src/utils/vab.js
+1
-1
src/views/vab/permissions/index.vue
+1
-1
vue.config.js
+1
-1
No files found.
mock/mockServer.js
View file @
bc7c67c0
...
...
@@ -3,7 +3,7 @@ const bodyParser = require('body-parser')
const
chalk
=
require
(
'chalk'
)
const
path
=
require
(
'path'
)
const
Mock
=
require
(
'mockjs'
)
const
{
baseURL
}
=
require
(
'../src/config
/settings
'
)
const
{
baseURL
}
=
require
(
'../src/config'
)
const
mockDir
=
path
.
join
(
process
.
cwd
(),
'mock'
)
/**
...
...
src/api/user.js
View file @
bc7c67c0
import
request
from
'@/utils/request'
import
{
encryptedData
}
from
'@/utils/encrypt'
import
{
loginRSA
,
tokenName
}
from
'@/config
/settings
'
import
{
loginRSA
,
tokenName
}
from
'@/config'
export
async
function
login
(
data
)
{
if
(
loginRSA
)
{
...
...
src/components/VabUpload/index.vue
View file @
bc7c67c0
...
...
@@ -75,7 +75,7 @@
</
template
>
<
script
>
import
{
baseURL
,
tokenName
}
from
'@/config
/settings
'
import
{
baseURL
,
tokenName
}
from
'@/config'
export
default
{
name
:
'VabUpload'
,
...
...
src/config/config.js
deleted
100644 → 0
View file @
3c9d625d
/**
* @description 导出自定义配置
**/
const
config
=
{}
module
.
exports
=
config
src/config/
default/
index.js
→
src/config/index.js
View file @
bc7c67c0
/**
* @description
导出默认配置(通用配置|主题配置|网络配置)
*
*
/
* @description
3个子配置,通用配置|主题配置|网络配置导出
*/
const
setting
=
require
(
'./setting.config'
)
const
theme
=
require
(
'./theme.config'
)
const
network
=
require
(
'./net.config'
)
module
.
exports
=
{
setting
,
theme
,
network
}
module
.
exports
=
Object
.
assign
({},
setting
,
theme
,
network
)
src/config/
default/
net.config.js
→
src/config/net.config.js
View file @
bc7c67c0
File moved
src/config/
default/
setting.config.js
→
src/config/setting.config.js
View file @
bc7c67c0
File moved
src/config/settings.js
View file @
bc7c67c0
/**
* @description 3个子配置,通用配置|主题配置|网络配置
,建议在当前目录下修改config.js修改配置,会覆盖默认配置,也可以直接修改默认配置
* @description 3个子配置,通用配置|主题配置|网络配置
*/
//默认配置
const
{
setting
,
theme
,
network
}
=
require
(
'./default'
)
//自定义配置
const
config
=
require
(
'./config'
)
//导出配置(以自定义配置为主)
module
.
exports
=
Object
.
assign
({},
setting
,
theme
,
network
,
config
)
const
{
setting
,
theme
,
network
}
=
require
(
'./'
)
module
.
exports
=
Object
.
assign
({},
setting
,
theme
,
network
)
src/config/
default/
theme.config.js
→
src/config/theme.config.js
View file @
bc7c67c0
File moved
src/layouts/components/VabAppMain/index.vue
View file @
bc7c67c0
...
...
@@ -16,12 +16,7 @@
<
script
>
import
{
mapActions
,
mapGetters
}
from
'vuex'
import
{
copyright
,
footerCopyright
,
keepAliveMaxNum
,
title
,
}
from
'@/config/settings'
import
{
copyright
,
footerCopyright
,
keepAliveMaxNum
,
title
}
from
'@/config'
export
default
{
name
:
'VabAppMain'
,
...
...
src/layouts/components/VabAvatar/index.vue
View file @
bc7c67c0
...
...
@@ -19,7 +19,7 @@
<
script
>
import
{
mapGetters
}
from
'vuex'
import
{
recordRoute
}
from
'@/config
/settings
'
import
{
recordRoute
}
from
'@/config'
export
default
{
name
:
'VabAvatar'
,
...
...
src/layouts/components/VabLogo/index.vue
View file @
bc7c67c0
...
...
@@ -15,7 +15,7 @@
</
template
>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
{
logo
}
from
'@/config
/settings
'
import
{
logo
}
from
'@/config'
export
default
{
name
:
'VabLogo'
,
...
...
src/layouts/components/VabThemeBar/index.vue
View file @
bc7c67c0
...
...
@@ -68,7 +68,7 @@
<
script
>
import
variables
from
'@/styles/variables.scss'
import
{
mapActions
,
mapGetters
}
from
'vuex'
import
{
layout
as
defaultLayout
}
from
'@/config
/settings
'
import
{
layout
as
defaultLayout
}
from
'@/config'
export
default
{
name
:
'VabThemeBar'
,
data
()
{
...
...
src/layouts/index.vue
View file @
bc7c67c0
...
...
@@ -53,7 +53,7 @@
<
script
>
import
{
mapActions
,
mapGetters
}
from
'vuex'
import
{
tokenName
}
from
'@/config
/settings
'
import
{
tokenName
}
from
'@/config'
export
default
{
name
:
'Layout'
,
data
()
{
...
...
src/plugins/support.js
View file @
bc7c67c0
import
{
MessageBox
}
from
'element-ui'
import
{
donation
}
from
'@/config
/settings
'
import
{
donation
}
from
'@/config'
import
{
dependencies
,
repository
}
from
'../../package.json'
if
(
!!
window
.
ActiveXObject
||
'ActiveXObject'
in
window
)
{
...
...
src/router/index.js
View file @
bc7c67c0
...
...
@@ -7,7 +7,7 @@ import Vue from 'vue'
import
VueRouter
from
'vue-router'
import
Layout
from
'@/layouts'
import
EmptyLayout
from
'@/layouts/EmptyLayout'
import
{
publicPath
,
routerMode
}
from
'@/config
/settings
'
import
{
publicPath
,
routerMode
}
from
'@/config'
Vue
.
use
(
VueRouter
)
export
const
constantRoutes
=
[
...
...
src/store/modules/settings.js
View file @
bc7c67c0
...
...
@@ -3,7 +3,7 @@
* @description 所有全局配置的状态管理,如无必要请勿修改
*/
import
defaultSettings
from
'@/config
/settings
'
import
defaultSettings
from
'@/config'
const
{
tabsBar
,
logo
,
layout
,
header
,
themeBar
}
=
defaultSettings
const
theme
=
...
...
src/store/modules/user.js
View file @
bc7c67c0
...
...
@@ -11,7 +11,7 @@ import {
setAccessToken
,
}
from
'@/utils/accessToken'
import
{
resetRouter
}
from
'@/router'
import
{
title
,
tokenName
}
from
'@/config
/settings
'
import
{
title
,
tokenName
}
from
'@/config'
const
state
=
{
accessToken
:
getAccessToken
(),
...
...
src/utils/accessToken.js
View file @
bc7c67c0
import
{
storage
,
tokenTableName
}
from
'@/config
/settings
'
import
{
storage
,
tokenTableName
}
from
'@/config'
/**
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
...
...
src/utils/errorLog.js
View file @
bc7c67c0
import
Vue
from
'vue'
import
store
from
'@/store'
import
{
isArray
,
isString
}
from
'@/utils/validate'
import
{
errorLog
}
from
'@/config
/settings
'
import
{
errorLog
}
from
'@/config'
const
needErrorLog
=
errorLog
const
checkNeed
=
()
=>
{
...
...
src/utils/pageTitle.js
View file @
bc7c67c0
import
{
title
}
from
'@/config
/settings
'
import
{
title
}
from
'@/config'
/**
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
...
...
src/utils/request.js
View file @
bc7c67c0
...
...
@@ -10,7 +10,7 @@ import {
successCode
,
tokenName
,
loginInterception
,
}
from
'@/config
/settings
'
}
from
'@/config'
import
store
from
'@/store'
import
qs
from
'qs'
import
router
from
'@/router'
...
...
src/utils/vab.js
View file @
bc7c67c0
import
{
loadingText
,
messageDuration
,
title
}
from
'@/config
/settings
'
import
{
loadingText
,
messageDuration
,
title
}
from
'@/config'
import
*
as
lodash
from
'lodash'
import
{
Loading
,
Message
,
MessageBox
,
Notification
}
from
'element-ui'
import
store
from
'@/store'
...
...
src/views/vab/permissions/index.vue
View file @
bc7c67c0
...
...
@@ -115,7 +115,7 @@
<
script
>
import
{
mapGetters
}
from
'vuex'
import
{
tokenTableName
}
from
'@/config
/settings
'
import
{
tokenTableName
}
from
'@/config'
import
{
getRouterList
}
from
'@/api/router'
export
default
{
...
...
vue.config.js
View file @
bc7c67c0
...
...
@@ -16,7 +16,7 @@ const {
providePlugin
,
build7z
,
donation
,
}
=
require
(
'./src/config
/settings
'
)
}
=
require
(
'./src/config'
)
const
{
webpackBarName
,
webpackBanner
,
donationConsole
}
=
require
(
'zx-layouts'
)
if
(
donation
)
donationConsole
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment