|
@@ -7,7 +7,13 @@
|
|
|
<template v-slot:prepend>
|
|
|
<v-list-item :light="!react">
|
|
|
<v-list-item-content>
|
|
|
- <v-list-item-title class="text-h6">AI取数 <small class="indigo--text">{{ react ? '(REACT模式)' : '' }}</small></v-list-item-title>
|
|
|
+ <v-list-item-title class="text-h6">
|
|
|
+ AI取数
|
|
|
+ <small class="indigo--text">{{ react ? '(思考模式)' : '(取数模式)' }}</small>
|
|
|
+ <v-btn icon small color="indigo" @click="handleReact">
|
|
|
+ <v-icon>mdi-swap-horizontal</v-icon>
|
|
|
+ </v-btn>
|
|
|
+ </v-list-item-title>
|
|
|
<!-- <v-list-item-subtitle>Logged In</v-list-item-subtitle> -->
|
|
|
</v-list-item-content>
|
|
|
</v-list-item>
|
|
@@ -57,9 +63,6 @@
|
|
|
<v-btn class="mb-3" light color="indigo" block @click="$router.push('/my-chart')" disabled>
|
|
|
我的图表
|
|
|
</v-btn>
|
|
|
- <v-btn class="mb-3" block color="indigo" @click="handleReact">
|
|
|
- 切换{{ react ? 'ASK模式' : 'REACT模式' }}
|
|
|
- </v-btn>
|
|
|
<v-btn block color="indigo" @click="handleLogout">
|
|
|
Logout
|
|
|
</v-btn>
|
|
@@ -141,12 +144,12 @@ export default {
|
|
|
},
|
|
|
handleReact () {
|
|
|
if (this.react) {
|
|
|
- // this.$router.push('/home')
|
|
|
- window.open('/home', '_blank')
|
|
|
+ this.$router.push('/home')
|
|
|
+ // window.open('/home', '_blank')
|
|
|
return
|
|
|
}
|
|
|
- window.open('/react', '_blank')
|
|
|
- // this.$router.push('/react')
|
|
|
+ // window.open('/react', '_blank')
|
|
|
+ this.$router.push('/react')
|
|
|
}
|
|
|
}
|
|
|
}
|