Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
Project
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
姜雷
dcxy-manage-shell
Commits
4550c660
Commit
4550c660
authored
Jun 13, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加全局捕获错误
parent
18a21a3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
errorHandler.js
src/utils/errorHandler.js
+4
-0
extends.js
src/utils/extends.js
+4
-0
No files found.
src/utils/errorHandler.js
0 → 100644
View file @
4550c660
export
default
(
err
,
vm
,
info
)
=>
{
console
.
table
([
err
,
{
info
:
info
}]);
return
false
;
};
src/utils/extends.js
View file @
4550c660
...
@@ -10,6 +10,8 @@ import {
...
@@ -10,6 +10,8 @@ import {
import
rymUi
from
'rym-element-ui'
;
import
rymUi
from
'rym-element-ui'
;
import
'rym-element-ui/lib/rymUi.css'
;
import
'rym-element-ui/lib/rymUi.css'
;
import
errorHandler
from
'./errorHandler'
;
import
HeaderImg
from
'../components/HeaderImg/HeaderImg.vue'
;
import
HeaderImg
from
'../components/HeaderImg/HeaderImg.vue'
;
import
UserWithContent
from
'../components/UserCard/UserWithContent.vue'
;
import
UserWithContent
from
'../components/UserCard/UserWithContent.vue'
;
import
UserCard
from
'../components/UserCard/UserCard.vue'
;
import
UserCard
from
'../components/UserCard/UserCard.vue'
;
...
@@ -35,6 +37,8 @@ const extendVue = Vue => {
...
@@ -35,6 +37,8 @@ const extendVue = Vue => {
Vue
.
prototype
.
$formatterMoneyToDouble
=
formatterMoneyToDouble
;
Vue
.
prototype
.
$formatterMoneyToDouble
=
formatterMoneyToDouble
;
Vue
.
prototype
.
$formatPrice
=
formatPrice
;
Vue
.
prototype
.
$formatPrice
=
formatPrice
;
Vue
.
config
.
errorHandler
=
errorHandler
;
Vue
.
component
(
'UserCard'
,
UserCard
);
Vue
.
component
(
'UserCard'
,
UserCard
);
Vue
.
component
(
'UserInfo'
,
UserInfo
);
Vue
.
component
(
'UserInfo'
,
UserInfo
);
Vue
.
component
(
UserWithContent
.
name
,
UserWithContent
);
Vue
.
component
(
UserWithContent
.
name
,
UserWithContent
);
...
...
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