|
@@ -32,7 +32,16 @@ import * as filters from './filters' // global filters
|
|
|
// const { mockXHR } = require('../mock')
|
|
|
// mockXHR()
|
|
|
// }
|
|
|
-
|
|
|
+Vue.prototype.$fixModalZIndex = function() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ const modals = document.querySelectorAll('.v-modal');
|
|
|
+ modals.forEach(modal => {
|
|
|
+ if (parseInt(modal.style.zIndex, 10) > 10999) {
|
|
|
+ modal.style.zIndex = 10999;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+};
|
|
|
Vue.use(Element, {
|
|
|
size: Cookies.get('size') || 'medium', // set element-ui default size
|
|
|
i18n: (key, value) => i18n.t(key, value)
|