Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
log-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
log-platform
Commits
7334d870
Commit
7334d870
authored
Dec 25, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改vue为内网环境
parent
34b418f9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
14 deletions
+5
-14
log-manager-ui/admin/public/index.html
log-manager-ui/admin/public/index.html
+3
-3
log-manager-ui/admin/src/router.js
log-manager-ui/admin/src/router.js
+2
-2
log-manager-ui/admin/vue.config.js
log-manager-ui/admin/vue.config.js
+0
-9
No files found.
log-manager-ui/admin/public/index.html
View file @
7334d870
...
...
@@ -6,7 +6,7 @@
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<title>
日志管理平台
</title>
<link
rel=
"stylesheet"
href=
"https://unpkg.zhimg.com/element-ui@2.15.5/lib/theme-chalk/index.css"
>
<!-- <link rel="stylesheet" href="https://unpkg.zhimg.com/element-ui@2.15.5/lib/theme-chalk/index.css">--
>
</head>
<body>
<noscript>
...
...
@@ -14,10 +14,10 @@
</noscript>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
<script
src=
"https://unpkg.zhimg.com/vue@2.6.14/dist/vue.runtime.min.js"
></script>
<!--
<script src="https://unpkg.zhimg.com/vue@2.6.14/dist/vue.runtime.min.js"></script>
<script src="https://unpkg.zhimg.com/vuex@3.6.0/dist/vuex.min.js"></script>
<script src="https://unpkg.zhimg.com/vue-router@3.4.9/dist/vue-router.min.js"></script>
<script src="https://unpkg.zhimg.com/element-ui@2.15.5/lib/index.js"></script>
<script
src=
"https://unpkg.zhimg.com/vue-amap/dist/index.js"
></script>
<script src="https://unpkg.zhimg.com/vue-amap/dist/index.js"></script>
-->
</body>
</html>
log-manager-ui/admin/src/router.js
View file @
7334d870
...
...
@@ -10,8 +10,8 @@ NProgress.configure({ showSpinner: false })
Vue
.
use
(
Router
);
const
originalPush
=
Vue
Router
.
prototype
.
push
Vue
Router
.
prototype
.
push
=
function
push
(
location
,
onResolve
,
onReject
)
{
const
originalPush
=
Router
.
prototype
.
push
Router
.
prototype
.
push
=
function
push
(
location
,
onResolve
,
onReject
)
{
if
(
onResolve
||
onReject
)
return
originalPush
.
call
(
this
,
location
,
onResolve
,
onReject
)
return
originalPush
.
call
(
this
,
location
).
catch
(
err
=>
err
)
}
...
...
log-manager-ui/admin/vue.config.js
View file @
7334d870
module
.
exports
=
{
productionSourceMap
:
false
,
assetsDir
:
"
s
"
,
configureWebpack
:
{
externals
:
{
vue
:
"
Vue
"
,
vuex
:
"
Vuex
"
,
"
vue-router
"
:
"
VueRouter
"
,
"
element-ui
"
:
"
ELEMENT
"
,
},
},
lintOnSave
:
false
,
devServer
:
{
inline
:
true
,
...
...
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