mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 13:46:13 +08:00 
			
		
		
		
	set entry page
This commit is contained in:
		@@ -1,3 +1,12 @@
 | 
			
		||||
import axios from "axios";
 | 
			
		||||
 | 
			
		||||
const env = process.env.NODE_ENV || "production";
 | 
			
		||||
 | 
			
		||||
// change the axios base url for development
 | 
			
		||||
if (env === "development" || localStorage.dev === "dev") {
 | 
			
		||||
    axios.defaults.baseURL = location.protocol + "//" + location.hostname + ":3001";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
    data() {
 | 
			
		||||
        return {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user