|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<h1>index</h1>
|
|
|
- <el-input v-model="state.val"/><br/>
|
|
|
- <el-button @click="routerToLink('/b')">路由跳转到{{state.val}}</el-button><br/>
|
|
|
- <el-button @click="windowToLink('/b')">window打开{{state.val}}</el-button><br/>
|
|
|
- <el-button @click="locationToLink('/b')">重定向到{{state.val}}</el-button><br/>
|
|
|
+<!-- <el-input v-model="state.val"/><br/>-->
|
|
|
+ <el-button @click="routerToLink('/' + state.val)">路由跳转到{{state.val}}</el-button><br/>
|
|
|
+ <el-button @click="windowToLink('/' + state.val)">window打开{{state.val}}</el-button><br/>
|
|
|
+ <el-button @click="locationToLink('/' + state.val)">重定向到{{state.val}}</el-button><br/>
|
|
|
<div style="width: 200px;height: 100px;" v-loading="state.loadingCode">
|
|
|
<img style="width: 100%;height: 100%;" class="__hover" :src="state.codeBase64" @click="getCode"/>
|
|
|
</div>
|
|
@@ -21,7 +21,7 @@ const {proxy} = getCurrentInstance()
|
|
|
const state: any = reactive({
|
|
|
codeBase64: '',
|
|
|
loadingCode: false,
|
|
|
- val: '',
|
|
|
+ val: 'b',
|
|
|
})
|
|
|
const routerToLink = (url) => {
|
|
|
router.push(url)
|