Compare commits

...

3 Commits

@ -1,4 +1,5 @@
const url_ = "http://code.dev.sa0.online:88";
import $config from '@/config.js'
const url_ = $config.url;
let url_array = {};
url_array['YO'] = `${url_}/api/yo`;
const api = (mark) => {

@ -1,14 +1,16 @@
import {
$post
$post
} from '@/lu/axios.js'
const url_ = "http://code.dev.sa0.online:88";
import $config from '@/config.js'
const url_ = $config.url;
export const yo = async (data) => await $post({
url: 'YO',
data
url: 'YO',
data
})
export const $image = (path) => {
if (path.indexOf('data:image/') !== -1) return path
if (path.indexOf('http') !== -1) return path
return `${url_}${path}`
}

@ -1,3 +1,14 @@
let url = 'http://code.dev.sa0.online:88'
let env = 'online'
if (process.env.NODE_ENV == 'development') {
env = 'dev'
}
// env = 'online'
// env = 'dev'
if (env === 'dev') {
url = 'http://127.0.0.1:8000'
}
export default {
title: '鹿和开发套件'
title: '鹿和开发套件',
url,
}
Loading…
Cancel
Save