修复登出账号、修改密码等操作会清除uuidbug

This commit is contained in:
zhanglei829
2021-12-30 10:13:34 +08:00
parent 4ff8eb6494
commit d2a0940858
2 changed files with 7 additions and 9 deletions

View File

@@ -5,7 +5,6 @@
</template>
<script>
import {v4 as uuidv4} from 'uuid';
import {getCategoryTree} from '@/api/goods.js'
export default {
updated() {
@@ -17,13 +16,7 @@ export default {
})
}
},
mounted() {
let uuid = this.getStore('uuid');
if (!uuid) {
uuid = uuidv4();
this.setStore('uuid', uuid);
}
},
};
</script>