mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
admin_add_router
This commit is contained in:
@@ -114,12 +114,15 @@ export default {
|
||||
methods: {
|
||||
handleSelect(key, keyPath) {
|
||||
console.log(key, keyPath);
|
||||
console.log("select", this)
|
||||
},
|
||||
handleOpen(key, keyPath) {
|
||||
console.log(key, keyPath);
|
||||
console.log("open", this)
|
||||
},
|
||||
handleClose(key, keyPath) {
|
||||
console.log(key, keyPath);
|
||||
console.log("close", this)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+3
-2
@@ -1,7 +1,8 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import installElementPlus from './plugins/element'
|
||||
import router from './router'
|
||||
|
||||
const app = createApp(App)
|
||||
const app = createApp(App).use(router)
|
||||
installElementPlus(app)
|
||||
app.mount('#app')
|
||||
app.mount('#app')
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<h1>Agent Allow Page</h1>
|
||||
</template>
|
||||
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<h1>Home Page</h1>
|
||||
</template>
|
||||
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
import { createWebHistory, createRouter } from "vue-router";
|
||||
import Home from "../pages/index";
|
||||
import AgentAllow from "../pages/agent-allow";
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: "/",
|
||||
name: "Home",
|
||||
component: Home,
|
||||
},
|
||||
{
|
||||
path: "/agent-allow",
|
||||
name: "Agent-allow",
|
||||
component: AgentAllow,
|
||||
},
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user