This commit is contained in:
gongfuxiang
2025-02-25 16:15:58 +08:00
parent 452ae76fa9
commit db595f4f06

17
App.vue
View File

@ -7,10 +7,10 @@
data: {
// 基础配置
// 数据接口请求地址
request_url:'http://shopxo.com/',
request_url:'https://new.shopxo.vip/',
// 静态资源地址如系统根目录不在public目录下面请在静态地址后面加public目录、如https://d1.shopxo.vip/public/
static_url:'http://shopxo.com/',
static_url:'https://new.shopxo.vip/',
// 系统类型默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立
system_type: 'default',
@ -938,11 +938,14 @@
* url url地址
*/
get_url_main_part(url) {
if (url.indexOf('?') == -1) {
var value = url;
} else {
var temp_str = url.split('?');
var value = temp_str[0];
var value = '';
if((url || null) != null) {
if (url.indexOf('?') == -1) {
value = url;
} else {
temp_str = url.split('?');
value = temp_str[0];
}
}
return value;
},