-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<template> | ||
<div class="root"> | ||
<init-server/> | ||
<router-view/> | ||
</div> | ||
</template> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { createApp } from 'vue' | ||
import {createApp} from 'vue' | ||
import Popup from '@/components/popup.vue' | ||
import "@/styles/popup.less" | ||
import { createPinia } from 'pinia' | ||
import {createPinia} from 'pinia' | ||
import {router} from "./router" | ||
const app = createApp(Popup) | ||
|
||
app.use(router) | ||
app.use(createPinia()) | ||
app.mount('#app') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {createWebHashHistory, createRouter} from "vue-router" | ||
import InitServer from "@/components/popup/init-server.vue" | ||
|
||
export const router = createRouter({ | ||
// 4. 内部提供了 history 模式的实现。为了简单起见,我们在这里使用 hash 模式。 | ||
history: createWebHashHistory(), | ||
routes: [ | ||
{ | ||
path: "/init-server", | ||
component: InitServer | ||
} | ||
] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters