新增表单返回按钮显示逻辑
parent
2b486b3759
commit
274a13bc18
|
|
@ -134,12 +134,12 @@ export default {
|
||||||
isEmpty,
|
isEmpty,
|
||||||
init() {
|
init() {
|
||||||
// 判断应该显示什么icon
|
// 判断应该显示什么icon
|
||||||
let pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
let length = pages.length;
|
const length = pages.length;
|
||||||
if (length > 1) {
|
if (length > 1) {
|
||||||
this.back_icon = 'back';
|
this.back_icon = 'back';
|
||||||
} else {
|
} else {
|
||||||
this.back_icon = 'back';
|
this.back_icon = 'home';
|
||||||
}
|
}
|
||||||
const data = this.propValue;
|
const data = this.propValue;
|
||||||
// 公共配置信息
|
// 公共配置信息
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue