完善商城转跳

This commit is contained in:
唐明明
2022-01-13 17:36:31 +08:00
parent 8eef1d2a4b
commit 8ac82fffc9
2 changed files with 32 additions and 2 deletions

View File

@@ -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: {