Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-3
Commits
177794e9
Commit
177794e9
authored
Oct 28, 2021
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: dist
parent
4b13abb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
28 deletions
+3
-28
main.js
src/main.js
+3
-28
No files found.
src/main.js
View file @
177794e9
...
@@ -9,15 +9,13 @@
...
@@ -9,15 +9,13 @@
import
'babel-polyfill'
;
import
'babel-polyfill'
;
import
promise
from
'es6-promise'
;
import
promise
from
'es6-promise'
;
promise
.
polyfill
();
promise
.
polyfill
();
// import Vue from 'vue';
import
App
from
'./App'
;
import
App
from
'./App'
;
import
router
from
'./router'
;
import
router
from
'./router'
;
// import ElementUI from 'element-ui'; //, { Message }
import
VueAxios
from
'vue-axios'
;
import
VueAxios
from
'vue-axios'
;
import
axios
from
'axios'
;
import
axios
from
'axios'
;
import
store
from
'./store/store'
;
import
store
from
'./store/store'
;
/* eslint-disable */
/* eslint-disable */
import
*
as
types
from
'./store/types'
;
import
'../static/css/index.less'
;
import
'../static/css/index.less'
;
// import 'element-ui/lib/theme-chalk/index.css';
// import 'element-ui/lib/theme-chalk/index.css';
import
'../static/font/iconfont.css'
;
import
'../static/font/iconfont.css'
;
...
@@ -36,10 +34,7 @@ import vueGicImgPreview from '@gic-test/vue-gic-img-preview';
...
@@ -36,10 +34,7 @@ import vueGicImgPreview from '@gic-test/vue-gic-img-preview';
import
vueOfficeUploadImage
from
'@gic-test/vue-office-upload-image'
;
import
vueOfficeUploadImage
from
'@gic-test/vue-office-upload-image'
;
import
htmlToPdf
from
'@/components/utils/htmlToPdf'
;
import
htmlToPdf
from
'@/components/utils/htmlToPdf'
;
import
VueAMap
from
'vue-amap'
;
import
VueAMap
from
'vue-amap'
;
// import contentmenu from 'v-contextmenu';
// import 'v-contextmenu/dist/index.css';
// Vue.use(contentmenu);
Vue
.
use
(
VueAMap
);
Vue
.
use
(
VueAMap
);
VueAMap
.
initAMapApiLoader
({
VueAMap
.
initAMapApiLoader
({
key
:
'd53a58848be368a7398dc56d5670fe9c'
,
key
:
'd53a58848be368a7398dc56d5670fe9c'
,
...
@@ -55,7 +50,7 @@ Vue.use(vueOfficeAside);
...
@@ -55,7 +50,7 @@ Vue.use(vueOfficeAside);
Vue
.
use
(
vueOfficeHeader
);
Vue
.
use
(
vueOfficeHeader
);
Vue
.
config
.
productionTip
=
false
;
Vue
.
config
.
productionTip
=
false
;
// Vue.use(ElementUI, { size: 'large' });
Vue
.
use
(
VueAxios
,
axios
);
Vue
.
use
(
VueAxios
,
axios
);
Vue
.
axios
.
defaults
.
withCredentials
=
true
;
// cookie访问
Vue
.
axios
.
defaults
.
withCredentials
=
true
;
// cookie访问
...
@@ -82,27 +77,7 @@ router.beforeEach((to, from, next) => {
...
@@ -82,27 +77,7 @@ router.beforeEach((to, from, next) => {
}
else
{
}
else
{
baseUrl
=
host
;
baseUrl
=
host
;
}
}
if
(
!
localStorage
.
getItem
(
'userInfos'
))
{
// axios
// .get(`${baseUrl}/haoban-manage-web/emp/get-user-info`, {})
// .then(res => {
// let resData = res.data;
// if (resData.errorCode == 1) {
// localStorage.setItem('userInfos', JSON.stringify(resData.result));
// return;
// }
// // Message.error({
// // duration: 1000,
// // message: resData.message
// // })
// })
// .catch(function(error) {
// Message.error({
// duration: 1000,
// message: error.message
// });
// });
}
if
(
to
.
path
==
'/'
)
{
if
(
to
.
path
==
'/'
)
{
next
({
path
:
'/login'
});
next
({
path
:
'/login'
});
}
else
{
}
else
{
...
...
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