17 lines
445 B
TypeScript
17 lines
445 B
TypeScript
import { ref } from 'vue'
|
|
import { defineStore } from 'pinia'
|
|
|
|
import type { WorkbenchCampus } from '@/api/workbench/types'
|
|
|
|
export const useAppStore = defineStore('app', () => {
|
|
const environment = ref('接口联调环境')
|
|
const campuses = ref<WorkbenchCampus[]>(['本部院区', '东院区', '西院区'])
|
|
const selectedCampus = ref<WorkbenchCampus>('本部院区')
|
|
|
|
return {
|
|
environment,
|
|
campuses,
|
|
selectedCampus,
|
|
}
|
|
})
|