吉安感知网项目-前端
chenyao
2026-07-11 e92b5b69394c843ada6171ee52415337870e22e2
feat:在线编辑增加参数区分查看还是编辑状态
1 files modified
1 files added
4 ■■■■ changed files
applications/task-work-order/src/views/documentPreview/index.vue 3 ●●●●● patch | view | raw | blame | history
uniapps/work-wx/uploadCloudFunction.sh 1 ●●●● patch | view | raw | blame | history
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) {
uniapps/work-wx/uploadCloudFunction.sh
New file
@@ -0,0 +1 @@
${installPath} cloud functions deploy --e ${envId} --n quickstartFunctions --r --project ${projectPath}