2b780a12c2
Update agent and LLM guidance to reference the architecture strategy and add a template naming rule that keeps reusable abstractions domain-neutral. Mark maintenance Phase 3 as complete and document the page driver/page component refactors for EditableGrid and MasterDetail variants.docs: document template naming and maintenance refactor Update agent and LLM guidance to reference the architecture strategy and add a template naming rule that keeps reusable abstractions domain-neutral. Mark maintenance Phase 3 as complete and document the page driver/page component refactors for EditableGrid and MasterDetail variants.
21 lines
474 B
TypeScript
21 lines
474 B
TypeScript
import { computed } from 'vue'
|
|
|
|
import type { MaintenancePageModel } from '@/models/page'
|
|
import { useStudentStore } from '@/stores/students'
|
|
|
|
export function useMasterDetailCMaintenancePage() {
|
|
const studentStore = useStudentStore()
|
|
|
|
const pageModel = computed<MaintenancePageModel>(() => ({
|
|
type: 'maintenance',
|
|
title: '主從資料維護示範C',
|
|
records: studentStore.students,
|
|
loading: false,
|
|
error: null,
|
|
}))
|
|
|
|
return {
|
|
pageModel,
|
|
}
|
|
}
|