- You are currently at `{{ $route.path }}`
on the `{{ $route.name }}`
view.
-
- You are using electron v{{ versions['atom-shell'] }} with node v{{ versions.node }} on the {{ platform }} platform. -
- - - diff --git a/app/src/renderer/components/LandingPageView/assets/logo.png b/app/src/renderer/components/LandingPageView/assets/logo.png deleted file mode 100644 index 63736e2..0000000 Binary files a/app/src/renderer/components/LandingPageView/assets/logo.png and /dev/null differ diff --git a/app/src/renderer/main.js b/app/src/renderer/main.js index 702d391..1bfed6d 100644 --- a/app/src/renderer/main.js +++ b/app/src/renderer/main.js @@ -1,10 +1,9 @@ import Vue from 'vue' + import Router from 'vue-router' import Electron from 'vue-electron' -import App from './App' -import routes from './routes' -import store from './vuex/store' +import axios from 'axios'; import iView from 'iview'; import 'iview/dist/styles/iview.css'; @@ -14,6 +13,8 @@ Vue.use(Router); Vue.use(iView); Vue.config.debug = false; +import routes from './routes' +import store from './vuex/store' const router = new Router({ scrollBehavior: () => ({y: 0}), @@ -21,7 +22,7 @@ const router = new Router({ }); //拦截器 -import axios from 'axios'; + axios.interceptors.response.use((response) => { return response; }, (error) => { @@ -30,7 +31,8 @@ axios.interceptors.response.use((response) => { } }); -/* eslint-disable no-new */ +import App from './App'; +/!* eslint-disable no-new *!/ new Vue({ router, store, diff --git a/app/src/renderer/components/SetToken.vue b/app/src/renderer/pages/Login.vue similarity index 100% rename from app/src/renderer/components/SetToken.vue rename to app/src/renderer/pages/Login.vue diff --git a/app/src/renderer/components/Main.vue b/app/src/renderer/pages/Main.vue similarity index 98% rename from app/src/renderer/components/Main.vue rename to app/src/renderer/pages/Main.vue index f5f1d46..f502736 100644 --- a/app/src/renderer/components/Main.vue +++ b/app/src/renderer/pages/Main.vue @@ -80,7 +80,7 @@ import * as types from '../vuex/mutation-types' import storage from 'electron-json-storage' - import RightContent from './Main/RightContent.vue' + import RightContent from '../components/Main/RightContent.vue' import api from '../api/API' let API = null; diff --git a/app/src/renderer/components/Setup.vue b/app/src/renderer/pages/Setup.vue similarity index 97% rename from app/src/renderer/components/Setup.vue rename to app/src/renderer/pages/Setup.vue index 4df587b..effefed 100644 --- a/app/src/renderer/components/Setup.vue +++ b/app/src/renderer/pages/Setup.vue @@ -36,7 +36,7 @@