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
177cef25
Commit
177cef25
authored
Jul 10, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改错误提示方式
parent
aac56ccb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
babel.config.js
babel.config.js
+1
-1
errorHandler.js
src/utils/errorHandler.js
+2
-1
extends.js
src/utils/extends.js
+2
-2
No files found.
babel.config.js
View file @
177cef25
...
@@ -3,7 +3,7 @@ if (process.env.NODE_ENV === 'production') {
...
@@ -3,7 +3,7 @@ if (process.env.NODE_ENV === 'production') {
removeConsolePlugin
.
push
([
removeConsolePlugin
.
push
([
'transform-remove-console'
,
'transform-remove-console'
,
{
{
exclude
:
[
'error'
,
'warn'
],
exclude
:
[
'error'
,
'warn'
,
'table'
],
},
},
]);
]);
}
}
...
...
src/utils/errorHandler.js
View file @
177cef25
export
default
(
err
,
vm
,
info
)
=>
{
export
default
(
err
,
vm
,
info
)
=>
{
console
.
table
([
err
,
{
info
:
info
}]);
console
.
error
(
err
);
console
.
table
([{
name
:
'vm'
,
data
:
vm
},
{
name
:
'info'
,
data
:
info
}]);
return
false
;
return
false
;
};
};
src/utils/extends.js
View file @
177cef25
...
@@ -10,7 +10,7 @@ import {
...
@@ -10,7 +10,7 @@ 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
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'
;
...
@@ -37,7 +37,7 @@ const extendVue = Vue => {
...
@@ -37,7 +37,7 @@ const extendVue = Vue => {
Vue
.
prototype
.
$formatterMoneyToDouble
=
formatterMoneyToDouble
;
Vue
.
prototype
.
$formatterMoneyToDouble
=
formatterMoneyToDouble
;
Vue
.
prototype
.
$formatPrice
=
formatPrice
;
Vue
.
prototype
.
$formatPrice
=
formatPrice
;
//
Vue.config.errorHandler = errorHandler;
Vue
.
config
.
errorHandler
=
errorHandler
;
Vue
.
component
(
'UserCard'
,
UserCard
);
Vue
.
component
(
'UserCard'
,
UserCard
);
Vue
.
component
(
'UserInfo'
,
UserInfo
);
Vue
.
component
(
'UserInfo'
,
UserInfo
);
...
...
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