增加头部名称
This commit is contained in:
parent
22409d3bd5
commit
cd6dedf7a5
|
@ -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() {
|
||||||
|
|
|
@ -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('删除失败');
|
||||||
|
|
Loading…
Reference in New Issue