Commit d96910b3 authored by 陈帅's avatar 陈帅

style : support theme dark

parent 63d96d20
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
font-size: 12px; font-size: 12px;
line-height: 20px; line-height: 20px;
text-align: center; text-align: center;
background-color: @background-color-base; background-color: @tag-default-bg;
border-radius: 20px; border-radius: 20px;
&.active { &.active {
color: #fff; color: #fff;
......
...@@ -2,13 +2,13 @@ import request from 'umi-request'; ...@@ -2,13 +2,13 @@ import request from 'umi-request';
import { TableListParams } from './data'; import { TableListParams } from './data';
export async function queryRule(params: TableListParams) { export async function queryRule(params: TableListParams) {
return request(`/api`, { return request(`/api/rule`, {
params, params,
}); });
} }
export async function removeRule(params: TableListParams) { export async function removeRule(params: TableListParams) {
return request('/api', { return request('/api/rule', {
method: 'POST', method: 'POST',
data: { data: {
...params, ...params,
...@@ -18,7 +18,7 @@ export async function removeRule(params: TableListParams) { ...@@ -18,7 +18,7 @@ export async function removeRule(params: TableListParams) {
} }
export async function addRule(params: TableListParams) { export async function addRule(params: TableListParams) {
return request('/api', { return request('/api/rule', {
method: 'POST', method: 'POST',
data: { data: {
...params, ...params,
...@@ -28,7 +28,7 @@ export async function addRule(params: TableListParams) { ...@@ -28,7 +28,7 @@ export async function addRule(params: TableListParams) {
} }
export async function updateRule(params: TableListParams) { export async function updateRule(params: TableListParams) {
return request('/api', { return request('/api/rule', {
method: 'POST', method: 'POST',
data: { data: {
...params, ...params,
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
.head-title { .head-title {
margin-bottom: 20px; margin-bottom: 20px;
color: rgba(0, 0, 0, 0.85); color: @heading-colo;
font-weight: 500px; font-weight: 500px;
font-size: 16px; font-size: 16px;
} }
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "cross-env PAGES_PATH='AccountSettings/src' umi dev", "dev": "cross-env PAGES_PATH='DashboardAnalysis/src' umi dev",
"lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier", "lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"lint-staged:ts": "tslint", "lint-staged:ts": "tslint",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment