From e92b5b69394c843ada6171ee52415337870e22e2 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Sat, 11 Jul 2026 10:41:45 +0800
Subject: [PATCH] feat:在线编辑增加参数区分查看还是编辑状态

---
 uniapps/work-wx/uploadCloudFunction.sh                           |    1 +
 applications/task-work-order/src/views/documentPreview/index.vue |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/applications/task-work-order/src/views/documentPreview/index.vue b/applications/task-work-order/src/views/documentPreview/index.vue
index e334dfd..3da59da 100644
--- a/applications/task-work-order/src/views/documentPreview/index.vue
+++ b/applications/task-work-order/src/views/documentPreview/index.vue
@@ -28,6 +28,8 @@
 const route = useRoute()
 const documentServerUrl = import.meta.env.VITE_APP_ONLYOFFICE_DOCUMENT_SERVER_URL
 const attachId = computed(() => String(route.query.attachId || ''))
+const mode = computed(() => String(route.query.mode || ''))
+
 const config = ref(null)
 const loading = ref(false)
 const errorMessage = ref('')
@@ -45,6 +47,7 @@
 	try {
 		const res = await getOnlyOfficeConfigApi({
 			attachId: attachId.value,
+			mode: mode.value,
 		})
 		const data = res?.data?.data || res?.data
 		if (!data?.document || !data?.editorConfig) {
diff --git a/uniapps/work-wx/uploadCloudFunction.sh b/uniapps/work-wx/uploadCloudFunction.sh
new file mode 100644
index 0000000..df311b3
--- /dev/null
+++ b/uniapps/work-wx/uploadCloudFunction.sh
@@ -0,0 +1 @@
+${installPath} cloud functions deploy --e ${envId} --n quickstartFunctions --r --project ${projectPath}
\ No newline at end of file

--
Gitblit v1.9.3