Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
office-web
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
office-web
Commits
66676e16
Commit
66676e16
authored
Apr 12, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加请求头 haobanSign
parent
35567a5b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
7 deletions
+21
-7
README.md
README.md
+11
-0
index.html
dist/index.html
+2
-2
0.a6553e90a839b62ce0cc.js
dist/static/js/0.a6553e90a839b62ce0cc.js
+0
-0
manifest.5a4aeba0826746615a03.js
dist/static/js/manifest.5a4aeba0826746615a03.js
+2
-2
api.js
src/api/api.js
+6
-3
No files found.
README.md
View file @
66676e16
...
...
@@ -19,3 +19,14 @@ npm run build --report
```
For a detailed explanation on how things work, check out the
[
guide
](
http://vuejs-templates.github.io/webpack/
)
and
[
docs for vue-loader
](
http://vuejs.github.io/vue-loader
)
.
## 注意
>由于自定义 header 头增加 haobanSign 字段(即企业id),本地调试有些请求会有 options 预检请求,可以先注释下面代码, build 时候在放开注释;
```
# src/api/api.js
let haobanSign = JSON.parse(localStorage.getItem('userInfo')).enterpriseId;
Vue.axios.defaults.headers.post['haobansign'] = haobanSign;
Vue.axios.defaults.headers.get['haobansign'] = haobanSign;
```
dist/index.html
View file @
66676e16
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.456f686fd36b581d8941f1642a71075b.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.8d806fa044bf02a10295.js
></script><script
type=
text/javascript
src=
./static/js/vendor.7bffa30b60868871b0ad.js
></script><script
type=
text/javascript
src=
./static/js/app.51c76e71c88dc2980026.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.456f686fd36b581d8941f1642a71075b.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.5a4aeba0826746615a03.js
></script><script
type=
text/javascript
src=
./static/js/vendor.7bffa30b60868871b0ad.js
></script><script
type=
text/javascript
src=
./static/js/app.51c76e71c88dc2980026.js
></script></body></html>
\ No newline at end of file
dist/static/js/0.
41c7a055b3e0950cc323
.js
→
dist/static/js/0.
a6553e90a839b62ce0cc
.js
View file @
66676e16
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/manifest.
8d806fa044bf02a10295
.js
→
dist/static/js/manifest.
5a4aeba0826746615a03
.js
View file @
66676e16
!
function
(
e
){
var
f
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
a
[
t
]
&&
u
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
f
&&
f
(
c
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
a
=
{
77
:
0
};
function
b
(
f
){
if
(
c
[
f
])
return
c
[
f
].
exports
;
var
a
=
c
[
f
]
=
{
i
:
f
,
l
:
!
1
,
exports
:{}};
return
e
[
f
].
call
(
a
.
exports
,
a
,
a
.
exports
,
b
),
a
.
l
=!
0
,
a
.
exports
}
b
.
e
=
function
(
e
){
var
f
=
a
[
e
];
if
(
0
===
f
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
f
)
return
f
[
2
];
var
c
=
new
Promise
(
function
(
c
,
b
){
f
=
a
[
e
]
=
[
c
,
b
]});
f
[
2
]
=
c
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"41c7a055b3e0950cc323"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"58edd50ac6edf9ffe74d"
,
3
:
"516fd1892569e7db9611"
,
4
:
"52322e24f504fe1dd346"
,
5
:
"8593888f86a3714ccbf7"
,
6
:
"fd94cb41ad0ccfae8743"
,
7
:
"7e0164566e8e00575481"
,
8
:
"17cbbf226d1dd6a9aae7"
,
9
:
"7dc467d5cfcb4cfb033f"
,
10
:
"5aa39cededdd868bd5b7"
,
11
:
"0a7059ea2e15c5acf938"
,
12
:
"18b04a93b9e2b30572d3"
,
13
:
"99eba27757bf881d6c39"
,
14
:
"70a11e50ec358505e2b6"
,
15
:
"982c7f877d4d88d1d93b"
,
16
:
"8f8e20ce84faa7e6b5e6"
,
17
:
"4bddcee2555ecc9bae86"
,
18
:
"092fe3ab141c75954a1a"
,
19
:
"5c39f2f7f01d99cfe267"
,
20
:
"8f48037229efe39f46f1"
,
21
:
"5fdd2f8e839af6b9b1f3"
,
22
:
"4d875b19fa0bbbe1f2cd"
,
23
:
"e273f78a0b7240689906"
,
24
:
"9d547e5255fc6330d24b"
,
25
:
"88cb7eac0ef5b295254c"
,
26
:
"f4379b6101b36ecad43c"
,
27
:
"2ea724b0442e927bfdf5"
,
28
:
"9a558c8ef26760ba85d7"
,
29
:
"0155355dd99fffcb77d7"
,
30
:
"4cadfac284beef63d405"
,
31
:
"af46f102606343be3a92"
,
32
:
"41a1620b882cbd77f621"
,
33
:
"98c9f8f46aabb33952e1"
,
34
:
"a870a2a95752c259fbcb"
,
35
:
"099779ba05a964ff1dfe"
,
36
:
"b943c9b9ac95922ad369"
,
37
:
"9e050e6e5ae12e825639"
,
38
:
"7da020455236ec9cc0e6"
,
39
:
"e89aa19926c766c37a0c"
,
40
:
"d492e0196e79144717b9"
,
41
:
"e5670f9f0f45baf785be"
,
42
:
"6b54254cbfb8eceab3c2"
,
43
:
"dd9e90d8053228b68228"
,
44
:
"deb9f07fde1e218414cf"
,
45
:
"d9ca6bb21dcab104ec12"
,
46
:
"011006c03affa7d4bc69"
,
47
:
"9f65654f0a6e86bed8b2"
,
48
:
"8cf9a95e5b563198f587"
,
49
:
"33530ea069fc872b0d5f"
,
50
:
"41ab2fd5d45bfc3d5c23"
,
51
:
"9b495f511b712db255a7"
,
52
:
"10599ff77c8e1dc5cb61"
,
53
:
"8802335b18fef4b4450b"
,
54
:
"c71b318f4cd731decf77"
,
55
:
"7220e26fa501cf0cb4c5"
,
56
:
"7946f7a323ee3865eac1"
,
57
:
"594fe3f9a553b253aa93"
,
58
:
"7c09b86e733d28528679"
,
59
:
"cb4188665202f50664bc"
,
60
:
"458477eb661d504e2ede"
,
61
:
"913b2d83a393af57a8c3"
,
62
:
"89c9af9b531991549047"
,
63
:
"b802ff4df2e6424f55ef"
,
64
:
"f997dcd71fcb0cd6467b"
,
65
:
"50e7967b55e6217b3e3a"
,
66
:
"6b5fc386ec869d82a1dc"
,
67
:
"2d8e5c7eef8491a3cdba"
,
68
:
"ba49712f562eff6edbc3"
,
69
:
"e65d327b559f8fae7f73"
,
70
:
"f19cdcc96fb03261fca5"
,
71
:
"87a6af69154348344f0b"
,
72
:
"82c73b5000810385ba93"
,
73
:
"b425861e41d7dea6bf2e"
,
76
:
"fd376da7cdbac115205f"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
f
=
a
[
e
];
0
!==
f
&&
(
f
&&
f
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
a
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
c
},
b
.
m
=
e
,
b
.
c
=
c
,
b
.
d
=
function
(
e
,
f
,
c
){
b
.
o
(
e
,
f
)
||
Object
.
defineProperty
(
e
,
f
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
b
.
n
=
function
(
e
){
var
f
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
f
,
"a"
,
f
),
f
},
b
.
o
=
function
(
e
,
f
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
f
)},
b
.
p
=
"./"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
f
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
a
[
t
]
&&
u
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
f
&&
f
(
c
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
a
=
{
77
:
0
};
function
b
(
f
){
if
(
c
[
f
])
return
c
[
f
].
exports
;
var
a
=
c
[
f
]
=
{
i
:
f
,
l
:
!
1
,
exports
:{}};
return
e
[
f
].
call
(
a
.
exports
,
a
,
a
.
exports
,
b
),
a
.
l
=!
0
,
a
.
exports
}
b
.
e
=
function
(
e
){
var
f
=
a
[
e
];
if
(
0
===
f
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
f
)
return
f
[
2
];
var
c
=
new
Promise
(
function
(
c
,
b
){
f
=
a
[
e
]
=
[
c
,
b
]});
f
[
2
]
=
c
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"a6553e90a839b62ce0cc"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"58edd50ac6edf9ffe74d"
,
3
:
"516fd1892569e7db9611"
,
4
:
"52322e24f504fe1dd346"
,
5
:
"8593888f86a3714ccbf7"
,
6
:
"fd94cb41ad0ccfae8743"
,
7
:
"7e0164566e8e00575481"
,
8
:
"17cbbf226d1dd6a9aae7"
,
9
:
"7dc467d5cfcb4cfb033f"
,
10
:
"5aa39cededdd868bd5b7"
,
11
:
"0a7059ea2e15c5acf938"
,
12
:
"18b04a93b9e2b30572d3"
,
13
:
"99eba27757bf881d6c39"
,
14
:
"70a11e50ec358505e2b6"
,
15
:
"982c7f877d4d88d1d93b"
,
16
:
"8f8e20ce84faa7e6b5e6"
,
17
:
"4bddcee2555ecc9bae86"
,
18
:
"092fe3ab141c75954a1a"
,
19
:
"5c39f2f7f01d99cfe267"
,
20
:
"8f48037229efe39f46f1"
,
21
:
"5fdd2f8e839af6b9b1f3"
,
22
:
"4d875b19fa0bbbe1f2cd"
,
23
:
"e273f78a0b7240689906"
,
24
:
"9d547e5255fc6330d24b"
,
25
:
"88cb7eac0ef5b295254c"
,
26
:
"f4379b6101b36ecad43c"
,
27
:
"2ea724b0442e927bfdf5"
,
28
:
"9a558c8ef26760ba85d7"
,
29
:
"0155355dd99fffcb77d7"
,
30
:
"4cadfac284beef63d405"
,
31
:
"af46f102606343be3a92"
,
32
:
"41a1620b882cbd77f621"
,
33
:
"98c9f8f46aabb33952e1"
,
34
:
"a870a2a95752c259fbcb"
,
35
:
"099779ba05a964ff1dfe"
,
36
:
"b943c9b9ac95922ad369"
,
37
:
"9e050e6e5ae12e825639"
,
38
:
"7da020455236ec9cc0e6"
,
39
:
"e89aa19926c766c37a0c"
,
40
:
"d492e0196e79144717b9"
,
41
:
"e5670f9f0f45baf785be"
,
42
:
"6b54254cbfb8eceab3c2"
,
43
:
"dd9e90d8053228b68228"
,
44
:
"deb9f07fde1e218414cf"
,
45
:
"d9ca6bb21dcab104ec12"
,
46
:
"011006c03affa7d4bc69"
,
47
:
"9f65654f0a6e86bed8b2"
,
48
:
"8cf9a95e5b563198f587"
,
49
:
"33530ea069fc872b0d5f"
,
50
:
"41ab2fd5d45bfc3d5c23"
,
51
:
"9b495f511b712db255a7"
,
52
:
"10599ff77c8e1dc5cb61"
,
53
:
"8802335b18fef4b4450b"
,
54
:
"c71b318f4cd731decf77"
,
55
:
"7220e26fa501cf0cb4c5"
,
56
:
"7946f7a323ee3865eac1"
,
57
:
"594fe3f9a553b253aa93"
,
58
:
"7c09b86e733d28528679"
,
59
:
"cb4188665202f50664bc"
,
60
:
"458477eb661d504e2ede"
,
61
:
"913b2d83a393af57a8c3"
,
62
:
"89c9af9b531991549047"
,
63
:
"b802ff4df2e6424f55ef"
,
64
:
"f997dcd71fcb0cd6467b"
,
65
:
"50e7967b55e6217b3e3a"
,
66
:
"6b5fc386ec869d82a1dc"
,
67
:
"2d8e5c7eef8491a3cdba"
,
68
:
"ba49712f562eff6edbc3"
,
69
:
"e65d327b559f8fae7f73"
,
70
:
"f19cdcc96fb03261fca5"
,
71
:
"87a6af69154348344f0b"
,
72
:
"82c73b5000810385ba93"
,
73
:
"b425861e41d7dea6bf2e"
,
76
:
"fd376da7cdbac115205f"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
f
=
a
[
e
];
0
!==
f
&&
(
f
&&
f
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
a
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
c
},
b
.
m
=
e
,
b
.
c
=
c
,
b
.
d
=
function
(
e
,
f
,
c
){
b
.
o
(
e
,
f
)
||
Object
.
defineProperty
(
e
,
f
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
b
.
n
=
function
(
e
){
var
f
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
f
,
"a"
,
f
),
f
},
b
.
o
=
function
(
e
,
f
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
f
)},
b
.
p
=
"./"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/api/api.js
View file @
66676e16
...
...
@@ -6,10 +6,13 @@ import { Message } from 'element-ui';
/**
* 获取好办 企业 id
*/
let
haobanSign
=
JSON
.
parse
(
localStorage
.
getItem
(
'userInfo'
)).
enterpriseId
;
if
(
!!
localStorage
.
getItem
(
'userInfo'
))
{
let
haobanSign
=
JSON
.
parse
(
localStorage
.
getItem
(
'userInfo'
)).
enterpriseId
;
Vue
.
axios
.
defaults
.
headers
.
post
[
'haobansign'
]
=
haobanSign
;
Vue
.
axios
.
defaults
.
headers
.
get
[
'haobansign'
]
=
haobanSign
;
}
Vue
.
axios
.
defaults
.
timeout
=
15000
;
Vue
.
axios
.
defaults
.
headers
.
post
[
'haobansign'
]
=
haobanSign
;
Vue
.
axios
.
defaults
.
headers
.
get
[
'haobansign'
]
=
haobanSign
;
let
local
=
window
.
location
.
origin
;
if
(
local
.
indexOf
(
'localhost'
)
!=
-
1
)
{
local
=
'http://www.gicdev.com'
;
...
...
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