mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-22 19:01:51 +08:00
change version var name
This commit is contained in:
parent
1806fb338e
commit
ac23292fe7
2
app.py
2
app.py
@ -44,7 +44,7 @@ def get_config():
|
||||
if not config.get('assets_baseurl'):
|
||||
config['assets_baseurl'] = ''.join([request.host_url, 'assets']) + '/'
|
||||
|
||||
config['_game_version'] = get_version()
|
||||
config['_version'] = get_version()
|
||||
return config
|
||||
|
||||
|
||||
|
@ -84,7 +84,7 @@ class Loader{
|
||||
|
||||
assets.views.forEach(name => {
|
||||
var id = this.getFilename(name)
|
||||
var qs = gameConfig._game_version ? '?' + gameConfig._game_version.commit_short : '?'
|
||||
var qs = gameConfig._version ? '?' + gameConfig._version.commit_short : '?'
|
||||
this.promises.push(this.ajax("src/views/" + name + qs).then(page => {
|
||||
assets.pages[id] = page
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user