perf: fix CLS issue of actuator page (#840)

#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

修复 Actuator 页面抖动的问题。

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/3225

#### Special notes for your reviewer:

测试方式:

1. 测试进入系统概览页面是否会出现 https://github.com/halo-dev/halo/issues/3225 中提到的页面抖动问题。

#### Does this PR introduce a user-facing change?

```release-note
修复 Console 端进入系统概览页面会抖动的问题。
```
pull/839/head^2
Ryan Wang 2023-02-07 16:16:12 +08:00 committed by GitHub
parent 47d2b819eb
commit db2fe142a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ const handleFetchActuatorStartup = async () => {
const isExternalUrlValid = computed(() => { const isExternalUrlValid = computed(() => {
if (!globalInfo.value?.externalUrl) { if (!globalInfo.value?.externalUrl) {
return false; return true;
} }
const url = new URL(globalInfo.value.externalUrl); const url = new URL(globalInfo.value.externalUrl);
const { host: currentHost, protocol: currentProtocol } = window.location; const { host: currentHost, protocol: currentProtocol } = window.location;