From a52f13d719ee9cd53f129f4c59dcad783977fce9 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期五, 01 九月 2023 11:36:34 +0800
Subject: [PATCH] 小程序接口api 添加
---
screen_standard/src/App.vue | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/screen_standard/src/App.vue b/screen_standard/src/App.vue
index 2aef7b1..4c3da68 100644
--- a/screen_standard/src/App.vue
+++ b/screen_standard/src/App.vue
@@ -5,7 +5,8 @@
const enterprise = useCounterStore()
// const route = useRoute()
-let query = window.location.href.split('?')[1].split('&')
+let queryStr = window.location.href.split('?')[1]||''
+let query = queryStr.split('&')||[]
let data = { companyId: enterprise.companyId }
query.forEach(item => {
let subQuery = item.split('=')
--
Gitblit v1.9.3