增加头部名称

This commit is contained in:
zrh050423 2024-12-21 16:44:51 +08:00
parent 22409d3bd5
commit cd6dedf7a5
2 changed files with 7 additions and 3 deletions

View File

@ -9,9 +9,13 @@
</template> </template>
<script> <script>
import axiosInstance from '@/utils/axiosInstance'; // axios import axiosInstance from '@/utils/axiosInstance'; // axios
let BASE_URL = '';
const BASE_URL = '/talk/record/all'; // 使 BASE_URL if(sessionStorage.getItem('permission') === '0'){
BASE_URL = '/talk/record/all';
}else{
BASE_URL = '/talk/record/one';
}
export default { export default {
name: 'TalkHistory', name: 'TalkHistory',
data() { data() {

View File

@ -237,7 +237,7 @@ const deleteByIdsUser = () => {
console.log(idsToDelete) console.log(idsToDelete)
let result = await userDeleteByIdsService(idsToDelete); let result = await userDeleteByIdsService(idsToDelete);
ElMessage.success(result.message ? result.message : '删除成功'); ElMessage.success(result.message ? result.message : '删除成功');
getAllUser(); await getAllUser();
} catch (error) { } catch (error) {
console.error('删除失败:', error); console.error('删除失败:', error);
ElMessage.error('删除失败'); ElMessage.error('删除失败');