提交 9a84de7f authored 作者: 龙菲's avatar 龙菲

增加支持GLB类型的3D模型

上级 795a420f
......@@ -72,19 +72,6 @@ service.interceptors.response.use(
})
})
}
// 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
// if (res.code === 50008 || res.code === 50012 || res.code === 50014 || res.code ===401001) {
// // to re-login
// MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
// confirmButtonText: 'Re-Login',
// cancelButtonText: 'Cancel',
// type: 'warning'
// }).then(() => {
// store.dispatch('user/resetToken').then(() => {
// location.reload()
// })
// })
// }
return Promise.reject(new Error(res.msg || 'Error'))
} else {
return res
......
......@@ -245,7 +245,7 @@
:files="file3d"
:fileLimit="1"
:fileSize="500"
:fileType="['OBJ', 'STL', 'FBX', '3DS']"
:fileType="['OBJ', 'STL', 'FBX', '3DS', 'GLB']"
listType="text"
ref="file3d"
@getRemovedIds="getRemovedIds"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论