Commit f91378d5 authored by 罗超's avatar 罗超

1

parent cffd8b77
......@@ -17,7 +17,8 @@
"ant-design-vue": "^2.2.8",
"axios": "^0.21.1",
"core-js": "^3.6.5",
"element-plus": "^1.2.0-beta.2",
"dayjs": "^1.10.7",
"element-plus": "^1.2.0-beta.3",
"katex": "^0.13.18",
"lockr": "^0.9.0-beta.0",
"lodash": "^4.17.21",
......
......@@ -29,7 +29,7 @@ module.exports = configure(function (ctx) {
// app boot file (/src/boot)
// --> boot files are part of "main.js"
// https://v2.quasar.dev/quasar-cli/boot-files
boot: ['i18n', 'axios', 'dict', 'permission', 'globalcmp'],
boot: ['i18n', 'axios', 'dict', 'permission', 'globalcmp', 'antDesign'],
// https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
css: ['app.scss'],
......
......@@ -121,10 +121,12 @@ service.interceptors.response.use(
position:"top"
})
if (response.data.Code === 10000 || response.data.Code === 10001) {
console.log(124, response.data)
localStorage.clear()
router.replace({
path: '/auth/login'
})
location.reload()
}
}
} else {
......
import { boot } from 'quasar/wrappers'
import axios, { AxiosInstance } from 'axios'
import { Cascader, DatePicker } from 'ant-design-vue'
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$axios: AxiosInstance
......@@ -20,7 +20,6 @@ export default boot(({ app }) => {
app.config.globalProperties.$axios = axios
// ^ ^ ^ this will allow you to use this.$axios (for Vue Options API form)
// so you won't necessarily have to import axios in each vue file
app.use(Cascader, DatePicker)
/**
* @deprecated 弃用的方法
*/
......
......@@ -110,13 +110,13 @@
if (x.ChildList.length > 0) {
x.ChildList.forEach(j => {
j.chek = false;
// for (let index = 0; index < this.list.length; index++) {
// const element = this.list[index];
// if (element.Id == j.Id) {
// j.chek = true;
// break
// }
// }
for (let index = 0; index < props.list.length; index++) {
const element = props.list[index];
if (element.Id == j.Id) {
j.chek = true;
break
}
}
})
}
})
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment