From f4e81f84eb1ba84109f9d4bdcdd304e6f0e3384f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=8E=89=E5=9D=A1?= Date: Fri, 9 Mar 2018 16:58:57 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E5=89=8D=E7=AB=AF=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E7=9B=98=E6=9D=83=E9=99=90=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Dockerfile/Dockerfile | 2 +- spug_api/libs/sql/permissions.sql | 4 ++-- spug_web/src/components/account/Permission.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/Dockerfile/Dockerfile b/docs/Dockerfile/Dockerfile index ca51ec9..df615b8 100644 --- a/docs/Dockerfile/Dockerfile +++ b/docs/Dockerfile/Dockerfile @@ -4,7 +4,7 @@ RUN echo -e "http://mirrors.aliyun.com/alpine/v3.6/main\nhttp://mirrors.aliyun.c RUN apk update && apk add --no-cache ca-certificates python3 nginx mariadb nodejs-npm git RUN apk add --no-cache --virtual .build-deps python3-dev gcc musl-dev libffi-dev openssl-dev make \ && git clone https://github.com/openspug/spug.git /spug \ - && git pull \ + && cd /spug && git pull \ && pip3 install --no-cache-dir -r /spug/spug_api/requirements.txt \ && pip3 install --no-cache-dir gunicorn \ && apk del .build-deps diff --git a/spug_api/libs/sql/permissions.sql b/spug_api/libs/sql/permissions.sql index 1873e7e..4f9ad6a 100644 --- a/spug_api/libs/sql/permissions.sql +++ b/spug_api/libs/sql/permissions.sql @@ -1,5 +1,5 @@ --- 首页查看 -INSERT INTO account_permissions (id, name, `desc`) VALUES (100, 'home_view', '首页查看'); +-- Dashboard +INSERT INTO account_permissions (id, name, `desc`) VALUES (100, 'home_view', 'Dashboard'); -- 用户管理 -> 用户列表 INSERT INTO account_permissions (id, name, `desc`) VALUES (101, 'account_user_view', '获取用户列表'); diff --git a/spug_web/src/components/account/Permission.vue b/spug_web/src/components/account/Permission.vue index e7d0200..506d3ff 100644 --- a/spug_web/src/components/account/Permission.vue +++ b/spug_web/src/components/account/Permission.vue @@ -3,8 +3,8 @@ :close-on-click-modal="false"> - - + +
首页首页DashboardDashboard