This commit is contained in:
+2
-2
@@ -104,9 +104,9 @@ export default {
|
||||
uni.request({
|
||||
url: `${import.meta.env.VITE_API_BASE_URL}/products/categories/${categoryId}/attributes`,
|
||||
method: 'POST',
|
||||
data: attrs,
|
||||
data: JSON.stringify(attrs),
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
'Content-Type': 'text/plain',
|
||||
'Authorization': token ? `Bearer ${token}` : '',
|
||||
'X-User-Role': role
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user