| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { useLoginStore } from '@/stores/login.js' |
| | | import { useSessionStore } from '@/stores/session.js' |
| | | import { storeToRefs } from 'pinia'; |
| | | export default { |
| | | setup() { |
| | | const { userInfo } = storeToRefs(useSessionStore()) |
| | | const { loginDialogVisible } = storeToRefs(useLoginStore()) |
| | | return { userInfo, loginDialogVisible } |
| | | }, |
| | | data() { |
| | | return { |
| | | operationList: [ |
| | |
| | | this.$router.push('/main/noticeList') |
| | | }, |
| | | goOperationPage(item) { |
| | | if (item.value != 'appraisalPlan' && !this.userInfo.id) { |
| | | this.loginDialogVisible = true |
| | | this.$message.primary('请先登录') |
| | | return |
| | | } |
| | | this.$router.push(`/main/${item.value}`) |
| | | } |
| | | } |