diff --git a/.eslintignore b/.eslintignore
index e6529fc0..51525879 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -2,3 +2,4 @@ build/*.js
src/assets
public
dist
+src
diff --git a/package.json b/package.json
index 9a9e6d99..60c81a6c 100644
--- a/package.json
+++ b/package.json
@@ -53,6 +53,7 @@
"dropzone": "5.5.1",
"echarts": "4.2.1",
"element-ui": "2.7.0",
+ "eslint": "^6.3.0",
"file-saver": "2.0.1",
"fuse.js": "3.4.4",
"jquery": "^3.4.1",
@@ -92,10 +93,8 @@
"chalk": "2.4.2",
"chokidar": "2.1.5",
"connect": "3.6.6",
- "eslint": "5.15.3",
- "eslint-plugin-vue": "5.2.2",
+ "eslint-plugin-vue": "^5.2.3",
"html-webpack-plugin": "3.2.0",
- "husky": "1.3.1",
"lint-staged": "8.1.5",
"mockjs": "1.0.1-beta3",
"node-sass": "^4.9.0",
diff --git a/src/api/user.js b/src/api/user.js
index 68fbfe03..72071279 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -27,7 +27,7 @@ export function sendAnalyzeRequest(token) {
return request({
url: '/testpredict',
method: 'get',
- baseURL: 'http://localhost:8888',
+ baseURL: 'http://localhost:8010',
params: { token }
})
}
diff --git a/src/router/index.js b/src/router/index.js
index 110c0554..03e0093b 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -12,7 +12,7 @@ import chartsRouter from './modules/charts'
import tableRouter from './modules/table'
import nestedRouter from './modules/nested'
-/**
+/**
* Note: sub-menu only appear when route children.length >= 1
* Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
*
@@ -101,13 +101,27 @@ export const constantRoutes = [
component: Layout,
children: [
{
- path: 'haha',
- component: ()=>import('@/views/Analyzing/analyzing'),
+ path: 'analyzing',
+ component: () => import('@/views/Analyzing/analyzing'),
name: 'analyze',
meta: { title: 'analyzing' }
}
]
},
+ {
+ path: '/plot',
+ //hidden: true,
+ component: Layout,
+
+ children: [
+ {
+ path: 'plot',
+ component: () => import('@/views/plot/index'),
+ name: 'plot',
+ meta: { title: 'plot' }
+ }
+ ]
+ },
{
path: '/documentation',
component: Layout,
diff --git a/src/views/Analyzing/analyzing.vue b/src/views/Analyzing/analyzing.vue
index b138840e..7f77cc1a 100644
--- a/src/views/Analyzing/analyzing.vue
+++ b/src/views/Analyzing/analyzing.vue
@@ -1,14 +1,12 @@
\ No newline at end of file
+ -->
diff --git a/src/views/plot/index.vue b/src/views/plot/index.vue
new file mode 100644
index 00000000..a33371af
--- /dev/null
+++ b/src/views/plot/index.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+