39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const currentUrl = new URL(window.location.href);
 | 
						|
const redirect = currentUrl.origin + currentUrl.pathname;
 | 
						|
export const kevisualConfig = {
 | 
						|
  loginWay: ['account', 'wechat'],
 | 
						|
  loginSuccess: '/root/center/',
 | 
						|
  loginSuccessIsNew: '/root/center/',
 | 
						|
  wxLogin: {
 | 
						|
    appid: 'wx9378885c8390e09b',
 | 
						|
    redirect_uri: redirect,
 | 
						|
  },
 | 
						|
  beian: '浙ICP备2025158778号',
 | 
						|
  logo: 'https://kevisual.xiongxiao.me/root/center/panda.png',
 | 
						|
  logoStyle: {
 | 
						|
    borderRadius: '50%',
 | 
						|
    marginTop: '10px',
 | 
						|
    margin: '30px auto',
 | 
						|
  },
 | 
						|
};
 | 
						|
 | 
						|
const kevisualXiongxiaoConfig = {
 | 
						|
  ...kevisualConfig,
 | 
						|
  loginWay: ['account', 'wechat-mp'],
 | 
						|
  wxLogin: {
 | 
						|
    appid: 'wxff97d569b1db16b6',
 | 
						|
    redirect_uri: redirect,
 | 
						|
  },
 | 
						|
  wxmpLogin: {
 | 
						|
    loginUrl: `${currentUrl.origin}/root/mini-web/login.html`,
 | 
						|
  },
 | 
						|
  logo: 'https://kevisual.xiongxiao.me/root/center/panda.png',
 | 
						|
  beian: '蜀ICP备16031039号-2',
 | 
						|
};
 | 
						|
 | 
						|
const url = new URL(window.location.href);
 | 
						|
const isKevisual = url.hostname === 'kevisual.cn';
 | 
						|
export const config = isKevisual ? kevisualConfig : kevisualXiongxiaoConfig;
 | 
						|
 | 
						|
document.title = '杭州余杭逸文设计工作室';
 |