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"