完成登陆的前端,修改api

This commit is contained in:
2020-09-02 17:12:15 +08:00
parent 486948ad6f
commit 6f7ad41591
15 changed files with 77 additions and 479 deletions

View File

@@ -1,6 +1,5 @@
import React, { Component, PureComponent } from 'react';
import { format_time, Time, TitleLine } from './infrastructure/widgets';
import { THUHOLE_API_ROOT } from './flows_api';
import HtmlToReact from 'html-to-react';
@@ -17,7 +16,7 @@ import renderMd from './Markdown';
export { format_time, Time, TitleLine };
export const API_BASE = THUHOLE_API_ROOT + 'services/thuhole';
export const API_BASE = '/api/v1/';
// https://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex
function escape_regex(string) {