test
This commit is contained in:
@@ -160,8 +160,8 @@ class SalespersonAdmin(ModelAdmin):
|
||||
total_sales_display.short_description = "累计销售额 (已支付)"
|
||||
|
||||
def promotion_url(self, obj):
|
||||
# 假设前端部署在 localhost:5173,生产环境需配置
|
||||
base_url = "http://localhost:5173"
|
||||
# 假设前端部署在 localhost:15173,生产环境需配置
|
||||
base_url = "http://localhost:15173"
|
||||
return f"{base_url}/?ref={obj.code}"
|
||||
|
||||
@display(description="推广链接")
|
||||
|
||||
Reference in New Issue
Block a user