-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into development
# Conflicts: # src/main.js # vue.config.js
- Loading branch information
Showing
3 changed files
with
4 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,12 @@ import 'lib-flexible' | |
import App from './App.vue' | ||
import router from '@/router' | ||
import store from '@/store' | ||
import FastClick from 'fastclick' | ||
import 'utils/permission' | ||
import SvgIcon from 'components/SvgIcon' | ||
import '@/icons' // icon | ||
import '@/style/common.scss' | ||
import { Lazyload } from 'vant' | ||
import defaultSettings from '@/settings' | ||
// import * as Sentry from '@sentry/browser' | ||
// import * as Integrations from '@sentry/integrations' | ||
import Raven from 'raven-js' | ||
import RavenVue from 'raven-js/plugins/vue' | ||
|
||
/** | ||
* If you don't want to use mock-server | ||
|
@@ -24,29 +19,11 @@ import RavenVue from 'raven-js/plugins/vue' | |
* please remove it before going online! ! ! | ||
*/ | ||
import { mockXHR } from '../mock' | ||
|
||
if (process.env.NODE_ENV === 'production') { | ||
mockXHR() | ||
} | ||
|
||
Raven.config('https://[email protected]/1802126', { | ||
release: process.env.RELEASE_VERSION // 版本号与vue.config.js的一致 | ||
}) | ||
.addPlugin(RavenVue, Vue) | ||
.install() | ||
// Sentry.init({ | ||
// dsn: 'https://[email protected]/1802126', | ||
// integrations: [ | ||
// new Integrations.Vue({ | ||
// Vue, | ||
// attachProps: true | ||
// }), | ||
// new Integrations.RewriteFrames() | ||
// ], | ||
// release: 'game-center-html@prod' | ||
// }) | ||
|
||
FastClick.attach(document.body) | ||
|
||
// options 为可选参数,无则不传 | ||
Vue.use(Lazyload) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters