From 457a5ea5aa037d9232d316758eda42c7ca61f275 Mon Sep 17 00:00:00 2001 From: fy Date: Sat, 9 Sep 2017 00:41:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- page/src/app.vue | 9 +++++++-- page/src/components/manage.vue | 10 +++++++++- page/src/components/topic_new.vue | 2 +- page/src/components/utils/msgbox.vue | 2 +- page/src/components/utils/paginator.vue | 2 +- page/src/main.js | 6 ++---- page/webpack.config.js | 1 + readme.md | 5 +++++ todo.md | 2 +- 9 files changed, 28 insertions(+), 11 deletions(-) diff --git a/page/src/app.vue b/page/src/app.vue index 936fc19..c839ee6 100644 --- a/page/src/app.vue +++ b/page/src/app.vue @@ -13,8 +13,8 @@ 印记 时光 用户 - 撰文 - 管理 + 撰文 + 管理 关于 @@ -84,6 +84,11 @@ export default { config, } }, + computed: { + user: function () { + return this.state.data.user; + } + }, methods: { navActiveClass: function (...names) { for (let name of names) { diff --git a/page/src/components/manage.vue b/page/src/components/manage.vue index 693aa13..dcf8f17 100644 --- a/page/src/components/manage.vue +++ b/page/src/components/manage.vue @@ -18,6 +18,7 @@ diff --git a/page/src/components/topic_new.vue b/page/src/components/topic_new.vue index 300e908..8ff86d3 100644 --- a/page/src/components/topic_new.vue +++ b/page/src/components/topic_new.vue @@ -32,7 +32,7 @@ import api from "../netapi.js" import state from "../state.js" import SimpleMDE from "simplemde" -//const SimpleMDE = () => import('simplemde') +import 'simplemde/dist/simplemde.min.css' import Prism from "prismjs" export default { diff --git a/page/src/components/utils/msgbox.vue b/page/src/components/utils/msgbox.vue index 4298ce5..af86be1 100644 --- a/page/src/components/utils/msgbox.vue +++ b/page/src/components/utils/msgbox.vue @@ -1,7 +1,7 @@