From 50450e6318b3047c10ef07c4cf95bdf052e68a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 10 May 2023 12:07:42 +0300 Subject: [PATCH] added path control for vueJS method. --- resources/assets/js/mixins/global.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/assets/js/mixins/global.js b/resources/assets/js/mixins/global.js index c76a5c81e..202b55db0 100644 --- a/resources/assets/js/mixins/global.js +++ b/resources/assets/js/mixins/global.js @@ -505,6 +505,10 @@ export default { // Dynamic component get path view and show it. onDynamicComponent(path) { + if (! path) { + return; + } + axios.get(path) .then(response => { let html = response.data.html; @@ -562,6 +566,10 @@ export default { }, onDynamicFormParams(path, params) { + if (! path) { + return; + } + let data = {}; for (const [key, value] of Object.entries(params)) {