This commit is contained in:
xingyy 2023-10-07 15:23:42 +08:00
parent 406b78cc10
commit c807185db7
3 changed files with 4 additions and 6 deletions

View File

@ -3,12 +3,11 @@ import tabBar from "./util/tabbar";
export default {
onLaunch: function() {
// uni.setStorageSync("token",'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6MCwiT3BlbklkIjoib01qYXY2NjlHMEtKcFlKNE1qWGhyNEh5cHhBUSIsIk5pY2tOYW1lIjoi5YiY5bCP5benIiwiVGVsTnVtIjoiMTUyNjI0ODE0OTgiLCJBdmF0YXIiOiJodHRwczovL2NkbnMuZm9udHJlZS5jbi9pbnZlbnRvcnkvZmlsZXMvaW1nL2MzNWQ1ODVhLTVjNTMtMTFlZS04OGRmLTAyNDJhYzEzMDAyNS5qcGciLCJJRE51bSI6IjMyMDMyNDE5OTAwNTA5NjY0WCIsImV4cCI6MTY5NTgxMTk4NCwiaXNzIjoibWFsbCJ9.QDDAiN5xFtL7BelKfgbnej_nO52T_UxQ7GFicHnQA2U')
uni.hideTabBar();
uni.setStorageSync("tabBar", tabBar);
},
onShow: function(e) {
onShow: function() {
console.log("App Show");
},
onHide: function() {

View File

@ -29,14 +29,11 @@
</template>
<script>
import tabbar from "../../components/uiq-tabbar/uiq-tabbar.vue";
import tabBarJs from "../../util/tabbar";
export default {
name: "index",
onLoad() {
uni.setStorageSync("tabBar", tabBarJs);
uni.hideTabBar();
},
onShow() {
this.getAddress();

View File

@ -57,6 +57,7 @@
</template>
<script>
import http from "@/http/api";
import tabBarJs from "../../util/tabbar";
export default {
name: "set-up",
data() {
@ -116,6 +117,7 @@ export default {
if (res.status === 0) {
this.$common.msgToast('注销成功');
uni.clearStorageSync();
uni.setStorageSync("tabBar", tabBarJs);
uni.navigateTo({
url: '/pages/login/login'
})