Skip to content

Commit 35c5822

Browse files
committed
Improve invalid controller method reference
1 parent 19efdce commit 35c5822

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

documentation/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 0.83.2
4+
* Improve invalid controller method reference
5+
36
## 0.83.1
47
* Update invalid controller method reference
58

src/js/layouts/adminDefault.vue

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,15 @@ export default {
110110
this.currentControllerType = ControllerType;
111111
}
112112
113-
if (
114-
this.$refs.currentController &&
115-
this.$refs.currentController[controller.method]
116-
) {
113+
if (controller.method) {
117114
118115
this.$nextTick(() => {
119-
this.$refs.currentController[controller.method](
120-
controller.params,
121-
controller.query
122-
);
116+
if (this.$refs.currentController[controller.method]) {
117+
this.$refs.currentController[controller.method](
118+
controller.params,
119+
controller.query
120+
);
121+
}
123122
});
124123
125124
}

0 commit comments

Comments
 (0)