|
|
@ -25,6 +25,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
|
|
|
|
import store from "@/store"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
import Breadcrumb from "@/components/Breadcrumb"; |
|
|
|
import Breadcrumb from "@/components/Breadcrumb"; |
|
|
|
import Hamburger from "@/components/Hamburger"; |
|
|
|
import Hamburger from "@/components/Hamburger"; |
|
|
@ -47,6 +48,7 @@ export default { |
|
|
|
serve.loginOut().then((res) => { |
|
|
|
serve.loginOut().then((res) => { |
|
|
|
if (res.code === 20000) { |
|
|
|
if (res.code === 20000) { |
|
|
|
localStorage.removeItem("customerToken"); |
|
|
|
localStorage.removeItem("customerToken"); |
|
|
|
|
|
|
|
store.dispatch("user/remove"); |
|
|
|
this.$router.push("/login"); |
|
|
|
this.$router.push("/login"); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|