From fdbe0904efc6330da09cbb92b0518fc008c5df44 Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Thu, 9 Jun 2022 14:00:08 +0800 Subject: [PATCH] add cctitle(...) --- unitool.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unitool.js b/unitool.js index dd41fd8..dc73729 100644 --- a/unitool.js +++ b/unitool.js @@ -42,6 +42,10 @@ export default { console.debug('%c ' + JSON.stringify({ time: new Date().toJSON(), page: pageName }), 'color:cyan;background:lightgrey', ...args) } }, + cctitle (...args) { + const pageName = this.thisPage().route || 'VueApp' + console.debug('%c ' + JSON.stringify({ time: new Date().toJSON(), page: pageName }), 'color:cyan;background:lightgrey', ...args) + }, localizeText (i18nText) { i18nText = i18nText?.__page__