import { defineStore } from 'pinia'
import { ref } from 'vue'

export const codeOperate = defineStore('code', () => {
  const currentCode = ref('')
  const changeCode = (id) => {
    currentCode.value = id
  }
  return {
    currentCode,
    changeCode
  }
})
