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
825e8dff
Commit
825e8dff
authored
Aug 30, 2020
by
chuzhixin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/chuzhixin/vue-admin-beautiful
into master
parents
488ebde5
d49ac8f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/config/settings.js
+2
-2
src/router/index.js
+2
-2
No files found.
src/config/settings.js
View file @
825e8dff
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* @description 全局变量配置
* @description 全局变量配置
*/
*/
module
.
exports
=
{
module
.
exports
=
{
// 开发以及部署时的URL
如"/test/"
// 开发以及部署时的URL
publicPath
:
""
,
publicPath
:
"
/
"
,
// 生产环境构建文件的目录名
// 生产环境构建文件的目录名
outputDir
:
"dist"
,
outputDir
:
"dist"
,
// 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录。
// 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录。
...
...
src/router/index.js
View file @
825e8dff
...
@@ -468,7 +468,7 @@ export const asyncRoutes = [
...
@@ -468,7 +468,7 @@ export const asyncRoutes = [
];
];
const
router
=
new
VueRouter
({
const
router
=
new
VueRouter
({
base
:
routerMode
===
"history"
?
publicPath
:
""
,
base
:
publicPath
,
mode
:
routerMode
,
mode
:
routerMode
,
scrollBehavior
:
()
=>
({
scrollBehavior
:
()
=>
({
y
:
0
,
y
:
0
,
...
@@ -485,7 +485,7 @@ VueRouter.prototype.push = function push(location, onResolve, onReject) {
...
@@ -485,7 +485,7 @@ VueRouter.prototype.push = function push(location, onResolve, onReject) {
export
function
resetRouter
()
{
export
function
resetRouter
()
{
router
.
matcher
=
new
VueRouter
({
router
.
matcher
=
new
VueRouter
({
base
:
routerMode
===
"history"
?
publicPath
:
""
,
base
:
publicPath
,
mode
:
routerMode
,
mode
:
routerMode
,
scrollBehavior
:
()
=>
({
scrollBehavior
:
()
=>
({
y
:
0
,
y
:
0
,
...
...
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