|
@@ -22,14 +22,14 @@ export const uploadErrorLog = async (contentError: string) => {
|
|
|
}
|
|
|
console.log('errorLog','错误',event)
|
|
|
try {
|
|
|
- console.log(window.location.hash, 'errorLog')
|
|
|
+ console.log(window.location.hash, 'errorLog', storeData)
|
|
|
|
|
|
const params = [
|
|
|
{
|
|
|
...defaultParams,
|
|
|
appKey: state.isCbsView ? 'CBS' : 'KT',
|
|
|
// clientType: state.systemType === 'teacher' ? 'TEACHER' : state.systemType === 'student' ? 'STUDENT' : 'BACKEND',
|
|
|
- clientType: storeData.isApp ? 'STUDENT' : 'BACKEND',
|
|
|
+ clientType: storeData.isApp ? 'STUDENT' : storeData.user?.clientType ? storeData.user?.clientType : 'BACKEND',
|
|
|
content: contentError,
|
|
|
exceptionTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
|
|
|
phone: storeData.user?.phone,
|