物业之前,新工作台
This commit is contained in:
@@ -52,6 +52,7 @@ const router = useRouter();
|
||||
const formRef = ref();
|
||||
const form = ref({
|
||||
'id': null,
|
||||
villageId: Number(localStorage.getItem('villageid')),
|
||||
'titile': '',
|
||||
'author': '',
|
||||
'content': '',
|
||||
@@ -84,6 +85,7 @@ if (route.query.id) {
|
||||
const submitForm = () => {
|
||||
formRef.value?.validate(async (valid: boolean) => {
|
||||
if (valid) {
|
||||
form.value.villageId = Number(localStorage.getItem('villageid'));
|
||||
if (userid.value) {
|
||||
updateActivity(form.value).then(() => {
|
||||
ElMessage.success('编辑成功');
|
||||
|
||||
Reference in New Issue
Block a user