From 956b4c435146c14ccfe8ef08d2f3cde1443ab366 Mon Sep 17 00:00:00 2001 From: p71924506 <222@qq.com> Date: Sun, 29 Jan 2023 17:10:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=80=A7=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=9A=E5=A2=9E=E5=8A=A0OnlyOfficeTest=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=EF=BC=8C=E9=83=A8=E7=BD=B2OnlyOffice=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=9C=A88044=E7=AB=AF=E5=8F=A3=EF=BC=8C=E7=9B=AE=E5=89=8D?= =?UTF-8?q?=E6=9C=AA=E8=AE=BE=E7=BD=AEtoken=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + public/index.html | 1 + src/router/index.js | 12 ++ src/views/onlyOfficeTest/OnlyOfficeEditor.vue | 122 ++++++++++++++++++ src/views/onlyOfficeTest/OnlyOfficeTest.vue | 92 +++++++++++++ yarn.lock | 5 + 6 files changed, 233 insertions(+) create mode 100644 src/views/onlyOfficeTest/OnlyOfficeEditor.vue create mode 100644 src/views/onlyOfficeTest/OnlyOfficeTest.vue diff --git a/package.json b/package.json index 0ff3f4c..6d8cb97 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "test:ci": "npm run lint && npm run test:unit" }, "dependencies": { + "@onlyoffice/document-editor-vue": "^1.1.1", "axios": "0.18.1", "core-js": "^3.26.1", "docx-preview": "^0.1.14", diff --git a/public/index.html b/public/index.html index fa2be91..066ba82 100644 --- a/public/index.html +++ b/public/index.html @@ -5,6 +5,7 @@ + <%= webpackConfig.name %> diff --git a/src/router/index.js b/src/router/index.js index dc19da4..d114d8c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -100,6 +100,18 @@ export const constantRoutes = [ } ] }, + { + path:'/', + component: Layout, + children: [ + { + path: "OnlyOfficeTest", + name: 'OnlyOfficeTest', + component:() => import("@/views/onlyOfficeTest/OnlyOfficeTest"), + meta: {title: 'OnlyOfficeTest',icon: 'el-icon-setting'} + } + ] + }, // { // path: '/example', // component: Layout, diff --git a/src/views/onlyOfficeTest/OnlyOfficeEditor.vue b/src/views/onlyOfficeTest/OnlyOfficeEditor.vue new file mode 100644 index 0000000..7a2a5e6 --- /dev/null +++ b/src/views/onlyOfficeTest/OnlyOfficeEditor.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/src/views/onlyOfficeTest/OnlyOfficeTest.vue b/src/views/onlyOfficeTest/OnlyOfficeTest.vue new file mode 100644 index 0000000..3eb36b1 --- /dev/null +++ b/src/views/onlyOfficeTest/OnlyOfficeTest.vue @@ -0,0 +1,92 @@ + + + + + diff --git a/yarn.lock b/yarn.lock index 55fe540..a9849e6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1203,6 +1203,11 @@ resolved "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz" integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== +"@onlyoffice/document-editor-vue@^1.1.1": + version "1.1.1" + resolved "https://registry.npmmirror.com/@onlyoffice/document-editor-vue/-/document-editor-vue-1.1.1.tgz#26573080acae1d7ee6a4dddbad9737e67ae87d06" + integrity sha512-PCc56emC+UyKeyOAvLBeEkI2uqTpXMbN2b5Sumf1N+MDLzvyGTV6AFwxvvLRbUdHJFdNn7+7NwN2CE8wGt0gOQ== + "@soda/friendly-errors-webpack-plugin@^1.7.1": version "1.8.1" resolved "https://registry.npmmirror.com/@soda/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.8.1.tgz"