diff --git a/src/views/dashboard/configuration/Text.vue b/src/views/dashboard/configuration/Text.vue index 5733fb1d..268be91a 100644 --- a/src/views/dashboard/configuration/Text.vue +++ b/src/views/dashboard/configuration/Text.vue @@ -64,6 +64,14 @@ limitations under the License. --> @change="changeConfig({ fontColor: $event[0].value })" /> + diff --git a/src/views/dashboard/controls/Text.vue b/src/views/dashboard/controls/Text.vue index e0f78a3e..60f77ede 100644 --- a/src/views/dashboard/controls/Text.vue +++ b/src/views/dashboard/controls/Text.vue @@ -36,7 +36,6 @@ limitations under the License. -->
fontSize: data.graph.fontSize + 'px', }" > - + {{ data.graph.content }} - +
@@ -76,8 +75,13 @@ function editConfig() { dashboardStore.setConfigPanel(true); dashboardStore.selectWidget(props.data); } -function ViewText() { - dashboardStore.setTopology(true); +function viewText() { + const path = props.data.graph.url; + console.log(path); + if (!path) { + return; + } + window.open(path, "_blank"); }