mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-21 15:04:26 +00:00
hot update
This commit is contained in:
@@ -79,8 +79,9 @@ let zuimei = {
|
||||
return name
|
||||
},
|
||||
|
||||
getWeatherByCode (num) {
|
||||
getWeatherByCode (number) {
|
||||
let wea = ''
|
||||
let num = Number(number)
|
||||
if (num === 0) {
|
||||
wea = '晴'
|
||||
} else if (num === 1) {
|
||||
|
||||
+1
-3
@@ -3,11 +3,9 @@ import PropTypes from 'prop-types'
|
||||
import { Router } from 'dva/router'
|
||||
import App from './routes/app'
|
||||
|
||||
const cached = {}
|
||||
const registerModel = (app, model) => {
|
||||
if (!cached[model.namespace]) {
|
||||
if (!(app._models.filter(m => m.namespace === model.namespace).length === 1)) {
|
||||
app.model(model)
|
||||
cached[model.namespace] = 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user