Update codeSelect.vue

WongBin 3 years ago
parent a95e33e99e
commit 851f8098ed

@ -14,6 +14,7 @@
<script> <script>
import request from '@/api/axios' import request from '@/api/axios'
import { getStorageItem } from '@/utils/storage'
export default { export default {
props: { props: {
value: { value: {
@ -90,7 +91,7 @@
mounted () {}, mounted () {},
methods: { methods: {
getListFromBaseCode() { getListFromBaseCode() {
let basecode = JSON.parse(localStorage.getItem('queryForCodeSelect')) let basecode = getStorageItem('queryForCodeSelect')
let list = [] let list = []
if (!basecode.hasOwnProperty(this.dictname)) { if (!basecode.hasOwnProperty(this.dictname)) {
return [] return []

Loading…
Cancel
Save