Commit f91378d5 authored by 罗超's avatar 罗超

1

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