From edf070c93200fc382e62c5952965a0a05627bf79 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Mon, 20 Dec 2021 13:13:19 +0800 Subject: [PATCH] feat: dashboard tools --- src/views/dashboard/Edit.vue | 23 ++++++++++++++++++++++- src/views/dashboard/New.vue | 2 +- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/Edit.vue b/src/views/dashboard/Edit.vue index a4c4b8ac..fdf2a852 100644 --- a/src/views/dashboard/Edit.vue +++ b/src/views/dashboard/Edit.vue @@ -12,4 +12,25 @@ distributed under the License is distributed on an "AS IS" BASIS, 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. --> - + + + diff --git a/src/views/dashboard/New.vue b/src/views/dashboard/New.vue index 0cb46eb7..7b13573d 100644 --- a/src/views/dashboard/New.vue +++ b/src/views/dashboard/New.vue @@ -181,7 +181,7 @@ const onCreate = () => { let path = `/dashboard/edit/${state.entity}/`; switch (state.entity) { case EntityType[0].value: - path += state.service; + path += state.service || 1; break; case EntityType[2].value: path += `${state.service}/${state.serviceEndpoint}`;