uniapp-router-next
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "uniapp-router-next", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -37,15 +37,17 @@ # uniapp-router-next | ||
import { createSSRApp } from 'vue' | ||
import RouterNavigate from 'uniapp-router-next/components/router-navigate/router-navigate.vue' | ||
import router from './router' | ||
import App from './App.vue' | ||
import router from './router' | ||
export function createApp() { | ||
const app = createSSRApp(App) | ||
app.component('router-navigate', RouterNavigate) | ||
app.use(router) | ||
return { | ||
app, | ||
app | ||
} | ||
} | ||
``` | ||
### 跳转 | ||
### api跳转 | ||
@@ -71,2 +73,8 @@ ```typescript | ||
### 组件跳转 | ||
```html | ||
<template> | ||
<router-navigate to="/pages/index/index">go</router-navigate> | ||
</template> | ||
``` | ||
### 路由信息 | ||
@@ -73,0 +81,0 @@ ```typescript |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1061226
105