Merge remote-tracking branch 'origin/dev2.0' into dev2.0

test
anthonywj 1 year ago
commit c7fd3eaf5a

@ -105,14 +105,14 @@ Element.DatePicker.props.firstDayOfWeek = {type: Number, default: 1}
Element.Select.methods.deleteSelected =
function deleteSelected(event) {
event.stopPropagation();
// 改动在这,原始的是这样 var value = this.multiple ? [] : '';
var value = this.multiple ? [] : null;
this.$emit("input", value);
this.emitChange(value);
this.visible = false;
this.$emit("clear");
};
event.stopPropagation()
// 改动在这,原始的是这样 var value = this.multiple ? [] : ''
var value = this.multiple ? [] : null
this.$emit("input", value)
this.emitChange(value)
this.visible = false
this.$emit("clear")
}
Vue.use(Element, {
size: Cookies.get('size') || 'mini' // set element-ui default size

@ -123,11 +123,11 @@ export function filterDynamicRoutes(routes) {
export const loadView = (view) => {
if (process.env.NODE_ENV === 'development') {
return (resolve) => require([`@/views/${view}`], resolve)
return (resolve) => require([`@/views/${view}.vue`], resolve)
} else {
// 使用 import 实现生产环境的路由懒加载
// return () => import(`@/views/${view}`)
return (resolve) => require([`@/views/${view}`], resolve)
return (resolve) => require([`@/views/${view}.vue`], resolve)
}
}

Loading…
Cancel
Save