feat(platform): support custom admin path prefix (#25)

This commit is contained in:
Li4n0
2021-05-31 23:03:39 +08:00
committed by GitHub
parent 42d1e35913
commit f7be2bc2e6
31 changed files with 41 additions and 36 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import axios from 'axios'
import {store} from "@/main";
const service = axios.create({
baseURL: '/revsuit/api/', // api的base_url
baseURL: location.pathname.slice(0, -'/admin/'.length) + "/api", // api的base_url
timeout: 5000, // request timeout
validateStatus: function (status) {
if (status === 403) {