diff --git a/app/controllers/ec_years_controller.rb b/app/controllers/ec_years_controller.rb index 6baf5d58..5e9063f1 100644 --- a/app/controllers/ec_years_controller.rb +++ b/app/controllers/ec_years_controller.rb @@ -239,7 +239,7 @@ class EcYearsController < ApplicationController template_file = EcTemplate.find_by_name "课程列表导入模板" if template_file.present? file = template_file.attachments.first - @file_url = '' #"/attachments/download/#{file.id}/#{file.filename}" + @file_url = "/attachments/download/#{file.id}/#{file.filename}" else @file_url = "javascript:void(0);" end