From a19e06f4d45a3cf67d6eb6dee968de3ef9d1145d Mon Sep 17 00:00:00 2001 From: Fine Date: Tue, 31 Jan 2023 14:14:24 +0800 Subject: [PATCH] feat: add title, tips --- src/views/dashboard/Widget.vue | 70 ++++++++++++++++++++++++++-------- 1 file changed, 54 insertions(+), 16 deletions(-) diff --git a/src/views/dashboard/Widget.vue b/src/views/dashboard/Widget.vue index 275f358f..59be4ca4 100644 --- a/src/views/dashboard/Widget.vue +++ b/src/views/dashboard/Widget.vue @@ -13,22 +13,34 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> @@ -58,6 +70,8 @@ limitations under the License. --> const source = ref({}); const loading = ref(false); const dashboardStore = useDashboardStore(); + const title = computed(() => encodeURIComponent((config.value.widget && config.value.widget.title) || "")); + const tips = computed(() => encodeURIComponent((config.value.widget && config.value.widget.tips) || "")); init(); async function init() { @@ -126,11 +140,20 @@ limitations under the License. --> source, appStoreWithOut, config, + title, + tips, }; }, });