业务内容模块
使用场景:需要外嵌平台某个页面,不需要展示菜单导航以及额外模块
-
diff --git a/src/views/error/403.vue b/src/views/error/403.vue
index 2a763ac4b..83b0838f0 100644
--- a/src/views/error/403.vue
+++ b/src/views/error/403.vue
@@ -1,9 +1,12 @@
@@ -46,7 +49,7 @@ defineOptions({
+import { useRouter } from "vue-router";
import noExist from "@/assets/status/404.svg?component";
defineOptions({
name: "404"
});
+
+const router = useRouter();
@@ -46,7 +49,7 @@ defineOptions({
+import { useRouter } from "vue-router";
import noServer from "@/assets/status/500.svg?component";
defineOptions({
name: "500"
});
+
+const router = useRouter();
@@ -46,7 +49,7 @@ defineOptions({
h(editForm, { ref: formRef }),
beforeSure: (done, { options }) => {
diff --git a/src/views/tabs/index.vue b/src/views/tabs/index.vue
index 6a0579b33..d949b73df 100644
--- a/src/views/tabs/index.vue
+++ b/src/views/tabs/index.vue
@@ -101,14 +101,14 @@ function onCloseTags() {
关闭标签
-
+
跳转页内菜单(传name对象,优先推荐)
-
+
跳转页内菜单(直接传要跳转的路径)
跳转页内菜单(传path对象)
@@ -116,7 +116,7 @@ function onCloseTags() {
-
+
跳转无Layout的空白页面
diff --git a/types/index.d.ts b/types/index.d.ts
index b6b4518ec..404601a3e 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -41,6 +41,10 @@ type DeepPartial = {
[P in keyof T]?: DeepPartial;
};
+type Without = { [P in Exclude]?: never };
+
+type Exclusive = (Without & U) | (Without & T);
+
type TimeoutHandle = ReturnType;
type IntervalHandle = ReturnType;