mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2026-03-13 10:32:25 +08:00
Merge remote-tracking branch 'coding/master'
This commit is contained in:
@@ -54,7 +54,7 @@ Look at `examples <https://github.com/long2ice/fastapi-admin/tree/master/example
|
||||
1. ``git clone https://github.com/long2ice/fastapi-admin.git``.
|
||||
2. create database ``fastapi-admin`` and import from ``examples/example.sql``.
|
||||
3. ``python setup.py install``.
|
||||
4. ``env DATABASE_URL=mysql://root:123456@127.0.0.1:3306/fastapi-admin python3 examples/main.py``,then you can see:
|
||||
4. ``env DATABASE_URL=mysql://root:123456@127.0.0.1:3306/fastapi-admin PYTHONPATH=./ python3 examples/main.py``,then you can see:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import axios from 'axios'
|
||||
import store, {types} from './store'
|
||||
import _ from 'lodash'
|
||||
|
||||
const API_URI = process.env.VUE_APP_API_URL || '/admin/api/'
|
||||
const API_URI = process.env.VUE_APP_API_URL || 'http://127.0.0.1:8000/admin/'
|
||||
global.API_URI = API_URI
|
||||
axios.defaults.baseURL = API_URI
|
||||
global.LOADING_ENABLED = true
|
||||
|
||||
@@ -3,7 +3,7 @@ const CompressionPlugin = require('compression-webpack-plugin');
|
||||
module.exports = {
|
||||
runtimeCompiler: true,
|
||||
productionSourceMap: false,
|
||||
publicPath: process.env.BASE_URL || '/admin/',
|
||||
publicPath: process.env.BASE_URL || '/',
|
||||
|
||||
css: {
|
||||
extract: true
|
||||
|
||||
Reference in New Issue
Block a user