You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
238 B

4 months ago
  1. // stores/counterStore.js
  2. import { defineStore } from 'pinia';
  3. export const userStore = defineStore({
  4. id: 'userStore',
  5. state: () => ({
  6. token: 10,
  7. }),
  8. actions: {
  9. increment(token) {
  10. this.token = token
  11. },
  12. },
  13. });