|
@@ -3,7 +3,7 @@ import { addClass, removeClass } from 'element-ui/src/utils/dom';
|
|
|
|
|
|
let hasModal = false;
|
|
let hasModal = false;
|
|
let hasInitZIndex = false;
|
|
let hasInitZIndex = false;
|
|
-let zIndex = 2000;
|
|
|
|
|
|
+let zIndex;
|
|
|
|
|
|
const getModal = function() {
|
|
const getModal = function() {
|
|
if (Vue.prototype.$isServer) return;
|
|
if (Vue.prototype.$isServer) return;
|
|
@@ -155,7 +155,7 @@ Object.defineProperty(PopupManager, 'zIndex', {
|
|
configurable: true,
|
|
configurable: true,
|
|
get() {
|
|
get() {
|
|
if (!hasInitZIndex) {
|
|
if (!hasInitZIndex) {
|
|
- zIndex = (Vue.prototype.$ELEMENT || {}).zIndex || zIndex;
|
|
|
|
|
|
+ zIndex = zIndex || (Vue.prototype.$ELEMENT || {}).zIndex || 2000;
|
|
hasInitZIndex = true;
|
|
hasInitZIndex = true;
|
|
}
|
|
}
|
|
return zIndex;
|
|
return zIndex;
|