完善商城转跳
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
|
||||
<script>
|
||||
import { goods } from '@/apis/interfaces/store'
|
||||
import userAuth from '@/public/userAuth'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -66,6 +67,11 @@
|
||||
})
|
||||
},
|
||||
buy(){
|
||||
if(this.$store.state.token === ''){
|
||||
const Auth = new userAuth()
|
||||
Auth.Login()
|
||||
return
|
||||
}
|
||||
this.$Router.push({
|
||||
name: 'StoreBuy',
|
||||
params: {
|
||||
|
||||
Reference in New Issue
Block a user